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 sjavora committed Mar 9, 2019
1 parent 7f7f81c commit 28f275e
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 28f275e

Please sign in to comment.