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 from deprecated Cop.all API to Rubocop v1 Registry.all #358

Closed
wants to merge 2 commits into from

Conversation

ryanfb
Copy link
Contributor

@ryanfb ryanfb commented Jul 12, 2024

API change is noted in the V1 upgrade notes here, so there's also a >= 1 requirement on the rubocop gem: https://docs.rubocop.org/rubocop/v1_upgrade_notes.html

Without this, erb-lint winds up emitting a ton of deprecation warnings when used with rubocop >= 1.65.0, which introduces warning messages for deprecated APIs: rubocop/rubocop#13032

@ryanfb
Copy link
Contributor Author

ryanfb commented Jul 12, 2024

I have signed the CLA!

@honzasterba
Copy link

the warnings with latest Rubocop are annoying, would be great to have this released, let me know if I can help in any way.

Copy link
Member

@etiennebarrie etiennebarrie left a 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")
Copy link
Member

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.

Copy link
Contributor Author

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.

etiennebarrie added a commit that referenced this pull request Jul 30, 2024
@etiennebarrie
Copy link
Member

You didn't allow maintainers to edit the pull request so I pushed the changes on main in 0d39442 directly. Thanks!

@huda-kh
Copy link

huda-kh commented Aug 1, 2024

When will this be released to rubygems?

@etiennebarrie
Copy link
Member

https://rubygems.org/gems/erb_lint/versions/0.6.0
https://github.com/Shopify/erb_lint/releases/tag/v0.6.0

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.

5 participants