Skip to content

Commit

Permalink
Adds closure_body_length opt-in rule
Browse files Browse the repository at this point in the history
because closure bodies should not span too many lines. Implements realm#52.
Requires Swift 4.2.
  • Loading branch information
ornithocoder authored and Daniel.Metzing committed Aug 14, 2018
1 parent 97f670d commit 709818e
Show file tree
Hide file tree
Showing 8 changed files with 714 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
* Improve performance of `line_length` rule.
[Marcelo Fabri](https://github.com/marcelofabri)

* Add `closure_body_length` rule to enforce the maximum number
of lines a closure should have. Requires Swift 4.2.
[Ornithologist Coder](https://github.com/ornithocoder)
[#52](https://github.com/realm/SwiftLint/issues/52)

#### Bug Fixes

* None.
Expand Down
Loading

0 comments on commit 709818e

Please sign in to comment.