-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add '--failed-level' option #896
Conversation
@@ -30,6 +30,10 @@ def parse(args) | |||
require f | |||
end | |||
|
|||
opts.on('--failed-level N', /[1-5]/, 'Minimum failed level.') do |n| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think users know what the numbers 1-5 mean. We will have to explain it or let them use initial letters R, C, W, E, F (R for Refactor is not used anywhere).
Also, the explanation could be more clear. Perhaps "Minimum severity for exit with error code." would do.
The code looks good to me. I have just a few remarks:
@jonas054 @yujinakayama Anything else you'd like to add? |
# @return [Symbol] | ||
# severity. | ||
# any of `:refactor`, `:convention`, `:warning`, `:error` or `:fatal`. | ||
attr_reader :key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the attribute names key
and code
are a bit ambiguous. I'd suggest name
as a replacement for the current key
.
👍 Also the commits need to be squashed. |
Fixed. |
👍 |
😄 |
This feature is useful to display warning but to make successful build on CI server.