Shopify / erb_lint

Lint your ERB or HTML files
MIT License
680 stars 122 forks source link

Corrector deprecations from Rubocop #368

Open MikeMcQuaid opened 3 months ago

MikeMcQuaid commented 3 months ago
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

docljn commented 1 month ago

Delighted to see this is in hand. Thank you! I'm trying to convince my colleagues to add to our linter collection, but without -a It's going to be a very hard sell.