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

Corrector deprecations from Rubocop #368

Open
MikeMcQuaid opened this issue Aug 19, 2024 · 0 comments · May be fixed by #378
Open

Corrector deprecations from Rubocop #368

MikeMcQuaid opened this issue Aug 19, 2024 · 0 comments · May be fixed by #378

Comments

@MikeMcQuaid
Copy link

Linting and autocorrecting 62 files with 19 linters (12 autocorrectable)...
vendor/ruby/ruby/3.3.0/gems/erb_lint-0.6.0/lib/erb_lint/corrector.rb:20: warning: `Corrector.new` with corrections is deprecated.
See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html

vendor/ruby/ruby/3.3.0/gems/rubocop-1.65.1/lib/rubocop/cop/legacy/corrector.rb:22: warning: `Corrector#corrections` is deprecated. Open an issue if you have a valid usecase.
See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html

Details are in https://docs.rubocop.org/rubocop/v1_upgrade_notes.html#detailed-api-changes

Earlopain added a commit to Earlopain/erb_lint that referenced this issue Sep 20, 2024
Closes Shopify#368

This is pretty much just a compatibility layer in itself.

Cops here are still declared with the old style (`autocorrect` instance method for example)
but rewriting that all is not trivial and also works just fine
@Earlopain Earlopain linked a pull request Sep 20, 2024 that will close this issue
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 a pull request may close this issue.

1 participant