Skip to content
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

Compatibility with RuboCop v0.60.0 #710

Merged
merged 2 commits into from
Nov 1, 2018
Merged

Compatibility with RuboCop v0.60.0 #710

merged 2 commits into from
Nov 1, 2018

Conversation

bquorning
Copy link
Collaborator

@bquorning bquorning commented Oct 27, 2018

There are a few interesting changes between RuboCop v0.59.2 and v0.60.0:

  1. We need to add [:exclude_limit] when checking cop.config_to_allow_offenses.
  2. Style/MutableConstant reported a few new issues.
  3. Layout/AlignHash has been changed so a combination of key and table styles is no longer allowed. I disagree with this decision, and have voiced my opinion on the issue Feature request: Layout/AlignHash option to allow for key and table styles to both be permissible rubocop#6410
  4. There seems to be some namespace collision between the cops Rails/HttpStatus and RSpec/Rails/HttpStatus … again. @Darhazer would you take a look at my last commit “tmp”?

Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the changelog if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@@ -41,6 +41,7 @@ it { is_expected.to have_http_status :error }

Name | Default value | Configurable values
--- | --- | ---
VersionAdded | `0.54` | Float
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. There must be some compartment/namespace bug hiding somewhere.

/cc @Darhazer @bbatsov

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #711

@bquorning bquorning mentioned this pull request Oct 28, 2018
@anthony-robin
Copy link
Contributor

The point number 4. can be related to this issue as well.

@bquorning
Copy link
Collaborator Author

bquorning commented Oct 28, 2018

Probably also related to rubocop/rubocop#5251 and rubocop/rubocop#3414.

I disagree with the recent changes in AlignHash, so a combination of `key` and
`table` styles is no longer allowed. The issue is very well described in
rubocop/rubocop#6410 .
@bquorning
Copy link
Collaborator Author

@Darhazer Fixed and rebased.

@bquorning bquorning merged commit 3ca0704 into master Nov 1, 2018
@bquorning bquorning deleted the rubocop-0.60.0 branch November 1, 2018 12:22
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.

None yet

3 participants