rubocop / guard-rubocop

Guard plugin for RuboCop
MIT License
262 stars 55 forks source link

Add fail-level #27

Closed inkstak closed 7 years ago

inkstak commented 8 years ago

Hello,

I tried to run guard-rubocop with --fail-level in :cli to ignore some offenses. However, although the command is considered passed, there are still some offenses to retry.

So, I tried to add a :fail_level option to guard-rubocop. The solution is not perfect cause it needs to require rubocop in the runner to compare severities.

yujinakayama commented 7 years ago

It should be handled in RuboCop itself and also RuboCop::Cop::Severity is a private API.