Skip to content

Commit

Permalink
Update generated artifacts after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Jul 30, 2018
1 parent f1aa04d commit e11bac4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
to specify that the rule should only be applied to `if` statements.
[Cihat Gündüz](https://github.com/Dschee)
[#2307](https://github.com/realm/SwiftLint/issues/2307)
* Add new opt-in rule `multiline_literal_indentation` to warn against multiline

* Add new opt-in rule `multiline_literal_brackets` to warn against multiline
literal arrays & dictionaries with surrounding brackets without newline.
[Cihat Gündüz](https://github.com/Dschee)
Expand Down
42 changes: 21 additions & 21 deletions Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -9579,27 +9579,6 @@ foo(
)
```

```swift
foo { param1, param2 in
print("hello world")
}
```

```swift
foo(
bar(
x: 5,
y: 7
)
)
```

```swift
AlertViewModel.AlertAction(title: "some title", style: .default) {
AlertManager.shared.presentNextDebugAlert()
}
```

</details>
<details>
<summary>Triggering Examples</summary>
Expand Down Expand Up @@ -9661,6 +9640,27 @@ func foo(
)
```

```swift
foo { param1, param2 in
print("hello world")
}
```

```swift
foo(
bar(
x: 5,
y: 7
)
)
```

```swift
AlertViewModel.AlertAction(title: "some title", style: .default) {
AlertManager.shared.presentNextDebugAlert()
}
```

</details>
<details>
<summary>Triggering Examples</summary>
Expand Down
12 changes: 12 additions & 0 deletions Tests/SwiftLintFrameworkTests/AutomaticRuleTests.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ class MissingDocsRuleTests: XCTestCase {
}
}

class MultilineArgumentsBracketsRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(MultilineArgumentsBracketsRule.description)
}
}

class MultilineFunctionChainsRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(MultilineFunctionChainsRule.description)
Expand All @@ -318,6 +324,12 @@ class MultilineLiteralBracketsRuleTests: XCTestCase {
}
}

class MultilineParametersBracketsRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(MultilineParametersBracketsRule.description)
}
}

class MultilineParametersRuleTests: XCTestCase {
func testWithDefaultConfiguration() {
verifyRule(MultilineParametersRule.description)
Expand Down

0 comments on commit e11bac4

Please sign in to comment.