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

Switch to the rubocop-shopify gem #138

Merged
merged 2 commits into from
Mar 25, 2021
Merged

Switch to the rubocop-shopify gem #138

merged 2 commits into from
Mar 25, 2021

Conversation

dylanahsmith
Copy link
Contributor

Our rubocop config is still trying to inherit the shopify rubocop config from https://ruby-style-guide.shopify.dev/rubocop.yml which now gives a 404 error.

The recommended way of using this configuration has been to use the rubocop-shopify gem, as mentioned on https://ruby-style-guide.shopify.dev/#adoption-with-rubocop. So I've switched to using that gem and fixed some rubocop offenses from inheriting a newer config.

Comment on lines +60 to +64
Lint/MissingSuper:
Exclude:
- 'test/executor_test.rb'
- 'test/loader_test.rb'
- 'test/support/loaders.rb'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although not calling super isn't recommended, we do need to keep supporting it for backwards compatibility, so I avoided updating these offenses.

However, I've kept this non-recommended usage in the tests, since
we still need to support `super` not being called in these loaders
for backwards compatibility
@dylanahsmith dylanahsmith merged commit 6eabbf8 into master Mar 25, 2021
@dylanahsmith dylanahsmith deleted the rubocop-shopify branch March 25, 2021 21:08
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems January 18, 2022 19:12 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.

2 participants