Skip to content

Commit 709818e

Browse files
ornithocoderDaniel.Metzing
authored and
Daniel.Metzing
committed
Adds closure_body_length opt-in rule
because closure bodies should not span too many lines. Implements realm#52. Requires Swift 4.2.
1 parent 97f670d commit 709818e

File tree

8 files changed

+714
-0
lines changed

8 files changed

+714
-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)