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

Update cops from Rubocop #80

Closed
marcelotoledo5000 opened this issue Oct 10, 2020 · 1 comment
Closed

Update cops from Rubocop #80

marcelotoledo5000 opened this issue Oct 10, 2020 · 1 comment
Labels

Comments

@marcelotoledo5000
Copy link

Before you submit this: WE ONLY ACCEPT BUG REPORTS AND FEATURE REQUESTS

For more information see CONTRIBUTING.md.

Describe the bug
I can't run rubocop local because these errors:

vendor/bundle/ruby/2.6.0/gems/dry-initializer-3.0.3/.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout
Error: The `Layout/IndentFirstArrayElement` cop has been renamed to `Layout/FirstArrayElementIndentation`.
(obsolete configuration found in vendor/bundle/ruby/2.6.0/gems/dry-initializer-3.0.3/.rubocop.yml, please update it)
The `Lint/HandleExceptions` cop has been renamed to `Lint/SuppressedException`.
(obsolete configuration found in vendor/bundle/ruby/2.6.0/gems/dry-initializer-3.0.3/.rubocop.yml, please update it)

A clear and concise description of what the bug is.

To Reproduce
Just run bundle exec rubocop and we receive the above error.

Provide detailed steps to reproduce, an executable script would be best.

Expected behavior
Just run rubocop on the project

A clear and concise description of what you expected to happen.

Your environment

  • Affects my production application: NO
  • We are using Ruby 2.6.5, Rails 6.0.3, rubocop 0.90.0 and dry-struct 1.3.0.- OS: Arch Linux
@flash-gordon
Copy link
Member

flash-gordon commented Oct 10, 2020

At the moment, the project uses version 0.82.0, it's set in Gemfile.devtools:

gem "rubocop", "0.82.0"

I don't know how bundler allows activating a different version of rubocop in your environment, it may be a misconfiguration of some kind. bundle exec rubocop works for me even when I have a newer version installed (bundler chooses the correct version, just as it should).

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

No branches or pull requests

2 participants