-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds closure_body_length opt-in rule #2342
Conversation
because closure bodies should not span too many lines. Implements realm#52. Requires Swift 4.2.
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #2342 +/- ##
==========================================
- Coverage 92.01% 91.88% -0.14%
==========================================
Files 302 304 +2
Lines 15192 15255 +63
==========================================
+ Hits 13979 14017 +38
- Misses 1213 1238 +25
Continue to review full report at Codecov.
|
CHANGELOG.md
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please mention that the rule is opt-in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course :-) Sorry about that.
explaining closure_body_length is a opt-in rule.
Thanks @ornithocoder 🎉 |
because closure bodies should not span too many lines.