-
Notifications
You must be signed in to change notification settings - Fork 122
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 from deprecated Cop.all API to Rubocop v1 Registry.all #358
Conversation
I have signed the CLA! |
the warnings with latest Rubocop are annoying, would be great to have this released, let me know if I can help in any way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're going to need to update CI to stop testing with Rubocop < 1.0. But it's going to be annoying for you to do it since CI doesn't run automatically for external contributors, I'll look into it.
@@ -28,7 +28,7 @@ Gem::Specification.new do |s| | |||
s.add_dependency("better_html", ">= 2.0.1") | |||
s.add_dependency("parser", ">= 2.7.1.4") | |||
s.add_dependency("rainbow") | |||
s.add_dependency("rubocop") | |||
s.add_dependency("rubocop", ">= 1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this changes, Gemfile.lock
should change with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pushed a new commit with that change.
You didn't allow maintainers to edit the pull request so I pushed the changes on main in 0d39442 directly. Thanks! |
When will this be released to rubygems? |
API change is noted in the V1 upgrade notes here, so there's also a
>= 1
requirement on therubocop
gem: https://docs.rubocop.org/rubocop/v1_upgrade_notes.htmlWithout this,
erb-lint
winds up emitting a ton of deprecation warnings when used withrubocop
>= 1.65.0
, which introduces warning messages for deprecated APIs: rubocop/rubocop#13032