-
Notifications
You must be signed in to change notification settings - Fork 48
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
Enable Layout/EmptyLineAfterGuardClause
cop
#348
Conversation
How many violations for this cop do we have in core? |
@rafaelfranca, 8,271 offenses detected, all auto-correctable though |
@@ -25,7 +25,7 @@ Layout/CaseIndentation: | |||
EnforcedStyle: end | |||
|
|||
Layout/EmptyLineAfterGuardClause: | |||
Enabled: false | |||
Enabled: true |
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.
Nitpick but for next time we can simply remove this entry from the config as this cop is enabled by default. We only need to explicitly enable true
for recent cops that are still in a "pending" state.
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.
Good point. I should have removed it and run the tests, which would have revealed the change to the full config.
I wonder how it would looks like for case. Example I have
|
This enables the
Layout/EmptyLineAfterGuardClause
cop, which is autocorrectable.From the documentation