You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rubocop --help lists command: --disable-pending-cops
And invoking rubocop with that option does what it says it does.
Actual behavior
rubocop --disable-p will also disable the pending cops. rubocop --disable- or less will yield ambiguous option: --disable-
It looks like rubocop is using substring matches for all command line options?
Its kinda convenient to only type --disable-pending instead of the full option.
But this seems weird, I would assume any unrecognized options should throw an error, but I guess maybe this is intended and not a bug?
Expected behavior
rubocop --help
lists command:--disable-pending-cops
And invoking rubocop with that option does what it says it does.
Actual behavior
rubocop --disable-p
will also disable the pending cops.rubocop --disable-
or less will yieldambiguous option: --disable-
It looks like rubocop is using substring matches for all command line options?
Its kinda convenient to only type
--disable-pending
instead of the full option.But this seems weird, I would assume any unrecognized options should throw an error, but I guess maybe this is intended and not a bug?
RuboCop version
The text was updated successfully, but these errors were encountered: