Skip to content

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

Merged
merged 2 commits into from
Mar 3, 2018

Conversation

xaviershay
Copy link
Member

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.

@@ -2,7 +2,7 @@
# can customize by inheriting this file and overriding particular settings.

AccessModifierIndentation:
EnforcedStyle: outdent
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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.

@benoittgt
Copy link
Member

benoittgt commented Mar 3, 2018

I think we should merge this PR to try to be more synched to other rspec repos.

@xaviershay
Copy link
Member Author

I agree :)

@xaviershay xaviershay merged commit 6ced4a8 into master Mar 3, 2018
@JonRowe JonRowe deleted the upgrade-rubocop branch March 4, 2018 07:53
@JonRowe JonRowe requested review from JonRowe and removed request for JonRowe March 4, 2018 07:53
@JonRowe
Copy link
Member

JonRowe commented Mar 4, 2018

@xaviershay Have you opened the PRs for the repos based on this?

@benoittgt
Copy link
Member

@xaviershay
Copy link
Member Author

xaviershay commented Mar 4, 2018 via email

@JonRowe
Copy link
Member

JonRowe commented Mar 4, 2018

Thanks @xaviershay wasn't sure if they had all been done to the same level, seems its just rspec-rails with differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants