Skip to content

Commit 94ae105

Browse files
committed
Adds closure_body_length opt-in rule
because closure bodies should not span too many lines. Implements realm#52.
1 parent 3961d64 commit 94ae105

File tree

7 files changed

+707
-0
lines changed

7 files changed

+707
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
* Improve performance of `line_length` rule.
1010
[Marcelo Fabri](https://github.com/marcelofabri)
1111

12+
* Add `closure_body_length` rule to enforce the maximum number
13+
of lines a closure should have. Requires Swift 4.2.
14+
[Ornithologist Coder](https://github.com/ornithocoder)
15+
[#52](https://github.com/realm/SwiftLint/issues/52)
16+
1217
#### Bug Fixes
1318

1419
* None.

0 commit comments

Comments
 (0)