`Lint: Enabled: false` in 1.1.0 causing error with RuboCop 1.73.2
I just updated all my gems and bin/rubocop stopped working with the error:
Error: configuration for Lint/Syntax cop found in .rubocop.yml
It's not possible to disable this cop.
The ~~blame~~ credit for the ValidationError check in RuboCop suggests it hasn't changed in about 6 years.
Versions:
rubocop 1.73.2
rubocop-performance 1.24.0
rubocop-rails 2.30.3
standard-performance 1.7.0
rubocop-rails-omakase 1.1.0
standard 1.47.0
The offending cop is on line 21.
Adding a specific rubocop version prevents the issue for now: gem "rubocop", "~> 1.71.0"
After limiting Rubocop, the working combination of gems is:
rubocop 1.71.2
rubocop-performance 1.23.1
rubocop-rails 2.29.1
standard-performance 1.6.0
rubocop-rails-omakase 1.0.0
standard 1.45.0
This issue doesn't seem to originate from the configuration of rubocop-rails-omakase. If this issue still occurs with the latest RuboCop 1.75.1, consider opening an issue in the rubocop/rubocop repository along with the steps to reproduce it. https://github.com/rubocop/rubocop/issues
I tried updating RuboCop to 1.75.1 but the latest Standard (1.4.7 from 2 weeks ago) won't work with anything higher than RuboCop 1.73.x
Digging into this a bit more, it seems to be related to https://github.com/rails/rubocop-rails-omakase/pull/26 and the addition of
Lint:
Enabled: false
which then fails the validate_syntax_cop check in RuboCop. If I bundle open rubocop-rails-omakase and remove those two lines, the error goes away.
But that change happened months ago and no one else has mentioned an issue so it seems like maybe something else is causing it?? I'm happy to do more testing but I'll need to be pointed in the right direction.
P.S. I also updated my original comment... I rushed it a bit so I could submit it before I got off the train, sorry!
Looks like for me it was some misconfigured combination of rubocop-rails-omakase and standardrb.
It turns out this is unsupported by standardrb so in the end I dropped rubocop-rails-omakase and deployed standardrb the supported way.