misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

add suppress warning option to allow rubocop to continue #97

Closed jtgrenz closed 5 years ago

jtgrenz commented 5 years ago

We often use a shared rubocop.yml file across multiple projects. When then parent config files is updated to include new cops but one of the consuming projects is using an older version of rubocop, rubocop will report that there are unrecognized cops. These are just warnings and shouldn't cause rubocop to fail entirely.

This PR just adds a suppress warning option to the configuration to ignore errors and run regardless. I figured anyone with a similar project configuration that often runs into issues like this might benefit from being able to toggle it on and off as they see fit.

kevindjacobson commented 5 years ago

My project uses Rubocop 67.0 and without this PR, I am unable to use rubocop with VScode.

misogi commented 5 years ago

Thanks for your contribution! It seems safe change.