-
-
Notifications
You must be signed in to change notification settings - Fork 69
Update base rubocop config for new version, disabling most of the new things. #198
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
Conversation
@@ -2,7 +2,7 @@ | |||
# can customize by inheriting this file and overriding particular settings. | |||
|
|||
AccessModifierIndentation: | |||
EnforcedStyle: outdent |
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.
we weren't consistently respecting this in repos (particularly with module_function
)
@@ -47,9 +47,6 @@ DoubleNegation: | |||
EachWithObject: | |||
Enabled: false | |||
|
|||
Encoding: | |||
EnforcedStyle: when_needed |
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.
No longer respected by rubocop.
@@ -95,9 +92,6 @@ PredicateName: | |||
Proc: | |||
Enabled: false | |||
|
|||
RedundantReturn: | |||
AllowMultipleReturnValues: 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.
Possibly could have figured out a way to keep this, but just disabled it instead.
5933272
to
40437e4
Compare
I think we should merge this PR to try to be more synched to other rspec repos. |
I agree :) |
@xaviershay Have you opened the PRs for the repos based on this? |
|
Yes, iirc they've been merged already. (Sorry traveling atm)
On Sat, Mar 3, 2018, at 11:54 PM, Jon Rowe wrote:
@xaviershay[1] Have you opened the PRs for the repos based on this?> — You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub[2], or mute the thread[3].>
|
Thanks @xaviershay wasn't sure if they had all been done to the same level, seems its just rspec-rails with differences. |
I disabled all the new layout and style cops, but tried to keep the lint/perf/security ones.
Didn't bother with any kind of sorting/order, couldn't come up with a quick way to do and figured it wouldn't be that valuable.