Closed kindoflew closed 3 years ago
@bronzdoc The issue that this is resolving is getting rid of the console message about new cops that was causing overcommit
to fail.
Apparently, new cops added between major versions aren't enabled by default, they are in a special "pending" status (https://docs.rubocop.org/rubocop/versioning.html#pending-cops). This then causes the message to appear if they aren't manually enabled/disabled.
Should I switch this to NewCops: enable
then? Or maybe explicitly decide on all the newer cops?
We could also pass --disable-pending-cops
as a flag in .overcommit.yml
. This way, the message is only suppressed during pre-commit checks, but if run manually, we would still see information about the new cops.
Closes #37.
Description: Added the following to
.rubocop.yml
:I went with disabling all new cops because it seemed like it would cause less surprising behavior than having commits potentially fail every time a new cop is added.
I will abide by the code of conduct.