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

Fix Rubocop 0.81.0 compatibility #146

Merged
merged 1 commit into from Apr 3, 2020
Merged

Conversation

larouxn
Copy link
Contributor

@larouxn larouxn commented Apr 1, 2020

Rubocop v0.81.0 removed Lint/EndInMethod in favour of consolidating within Style/EngBlock. (rubocop/rubocop#7813)

Thus, I removed our Lint/EndInMethod rule. We already have Style/EngBlock specified here:

Style/EndBlock:
Enabled: true

Example failure using rubocop-shopify-1.0.0:

Error: The Lint/EndInMethod cop has been renamed to Style/EndBlock.
https://app.circleci.com/pipelines/github/larouxn/carrotgram/223/workflows/e803990d-8268-463c-8d91-ce3fe3d05b62/jobs/223

@larouxn larouxn self-assigned this Apr 1, 2020
@larouxn larouxn changed the title Fix Rubocop 0.81.0 compatability Fix Rubocop 0.81.0 compatibility Apr 1, 2020
@larouxn
Copy link
Contributor Author

larouxn commented Apr 1, 2020

I suppose we'll need to release a v1.0.1 of this gem once this is merged. 🤔

@volmer
Copy link
Contributor

volmer commented Apr 1, 2020

Yes we will. Also given that RuboCop ships breaking changes in minor versions we should limit the range of the compatible version of RuboCop to allow automatic patch upgrades only (e.g. ~> 0.81.0)

Copy link
Member

@rafaelfranca rafaelfranca left a comment

Choose a reason for hiding this comment

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

We need to change the rubocop version in the gemspec since the minimum version is 0.81.0

@larouxn larouxn force-pushed the fix_rubocop_0.81.0_compatability branch 3 times, most recently from fb33635 to 1770c92 Compare April 2, 2020 00:31
@larouxn
Copy link
Contributor Author

larouxn commented Apr 2, 2020

Great points. I've updated the gemspec to require "rubocop", "~> 0.81.0" and ran bundle install to update the Gemfile.lock accordingly.

rubocop-shopify.gemspec Outdated Show resolved Hide resolved
@larouxn larouxn force-pushed the fix_rubocop_0.81.0_compatability branch from 1770c92 to 1b48316 Compare April 2, 2020 23:38
@larouxn larouxn merged commit b361840 into master Apr 3, 2020
@larouxn larouxn deleted the fix_rubocop_0.81.0_compatability branch April 3, 2020 00:42
@larouxn larouxn mentioned this pull request Apr 3, 2020
@larouxn larouxn requested a deployment to rubygems April 3, 2020 02:14 Abandoned
@larouxn larouxn requested a deployment to rubygems April 3, 2020 03:42 Abandoned
@larouxn larouxn temporarily deployed to rubygems April 3, 2020 03:42 Inactive
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