diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/switch_case_alignment.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/switch_case_alignment.html index d58a9b320..6633036b0 100644 --- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/switch_case_alignment.html +++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/switch_case_alignment.html @@ -390,6 +390,11 @@ print('Some other number') } +
let a = switch i {
+ case 1: 1
+ default: 2
+}
+
switch someBool {
↓case true:
diff --git a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_closing_braces.html b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_closing_braces.html
index 963c516ca..4b08d92f8 100644
--- a/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_closing_braces.html
+++ b/docsets/SwiftLintCore.docset/Contents/Resources/Documents/vertical_whitespace_closing_braces.html
@@ -359,35 +359,35 @@
print("x is 5")
}
-do {
- print("x is 5")
-}
-
-print([
- 1
-])
-
-foo(
- x: 5,
- y:6
-)
-
-do {
- print("x is 5")
-}
-
func foo() {
run(5) { x in
print(x)
}
}
+do {
+ print("x is 5")
+}
+
+do {
+ print("x is 5")
+}
+
+foo(
+ x: 5,
+ y:6
+)
+
[
1,
2,
3
]
+print([
+ 1
+])
+
print([foo {
var sum = 0
for i in 1...5 { sum += i }
@@ -429,29 +429,6 @@
do {
print("x is 5")
↓
-
-}
-
-do {
- print("x is 5")
-↓
-}
-
-print([
- 1
-↓
-])
-
-foo(
- x: 5,
- y:6
-↓
-)
-
-do {
- print("x is 5")
-↓
-
}
func foo() {
@@ -461,6 +438,24 @@
↓
}
+do {
+ print("x is 5")
+↓
+
+}
+
+do {
+ print("x is 5")
+↓
+
+}
+
+foo(
+ x: 5,
+ y:6
+↓
+)
+
[
1,
2,
@@ -468,6 +463,11 @@
↓
]
+print([
+ 1
+↓
+])
+
print([foo {
var sum = 0
for i in 1...5 { sum += i }
diff --git a/docsets/SwiftLintCore.tgz b/docsets/SwiftLintCore.tgz
index 7b72f76f8..233a3b056 100644
Binary files a/docsets/SwiftLintCore.tgz and b/docsets/SwiftLintCore.tgz differ
diff --git a/switch_case_alignment.html b/switch_case_alignment.html
index d58a9b320..6633036b0 100644
--- a/switch_case_alignment.html
+++ b/switch_case_alignment.html
@@ -390,6 +390,11 @@
print('Some other number')
}
+let a = switch i {
+ case 1: 1
+ default: 2
+}
+
Triggering Examples
switch someBool {
↓case true:
diff --git a/vertical_whitespace_closing_braces.html b/vertical_whitespace_closing_braces.html
index 963c516ca..4b08d92f8 100644
--- a/vertical_whitespace_closing_braces.html
+++ b/vertical_whitespace_closing_braces.html
@@ -359,35 +359,35 @@
print("x is 5")
}
-do {
- print("x is 5")
-}
-
-print([
- 1
-])
-
-foo(
- x: 5,
- y:6
-)
-
-do {
- print("x is 5")
-}
-
func foo() {
run(5) { x in
print(x)
}
}
+do {
+ print("x is 5")
+}
+
+do {
+ print("x is 5")
+}
+
+foo(
+ x: 5,
+ y:6
+)
+
[
1,
2,
3
]
+print([
+ 1
+])
+
print([foo {
var sum = 0
for i in 1...5 { sum += i }
@@ -429,29 +429,6 @@
do {
print("x is 5")
↓
-
-}
-
-do {
- print("x is 5")
-↓
-}
-
-print([
- 1
-↓
-])
-
-foo(
- x: 5,
- y:6
-↓
-)
-
-do {
- print("x is 5")
-↓
-
}
func foo() {
@@ -461,6 +438,24 @@
↓
}
+do {
+ print("x is 5")
+↓
+
+}
+
+do {
+ print("x is 5")
+↓
+
+}
+
+foo(
+ x: 5,
+ y:6
+↓
+)
+
[
1,
2,
@@ -468,6 +463,11 @@
↓
]
+print([
+ 1
+↓
+])
+
print([foo {
var sum = 0
for i in 1...5 { sum += i }