rubocop-git
rubocop-git copied to clipboard
Do not include violations that don't have any offenses
The rubocop-git
command exits with exit code 1, but the console output says no offenses.
This is because it doesn't display disabled offenses, and if all offenses are disabled under a violation, it just says there are no offenses. But when it determines whether it should exit(1)
, it just sees if there are any violations.
I'll go ahead and second this PR. We use rubocop-git
for CI build checks, on only changed code. This issue causes it to fail on seemingly no offenses.
And can confirm this change fixes our issue. @m4i any chances this will make it in?