-
Notifications
You must be signed in to change notification settings - Fork 57
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 verbosity config option, output only errors unless set #88
add verbosity config option, output only errors unless set #88
Conversation
src/elvis_utils.erl
Outdated
|
||
-spec error(string()) -> ok. | ||
error(Message) -> | ||
error(Message, []). |
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.
According to Compiler:
Warning: ambiguous call of overridden auto-imported BIF error/2
`elvis_utils:print_info` will be suppressed when verbose is _not_ set. Signed-off-by: Stephan Renatus <[email protected]>
162b73d
to
a65b524
Compare
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.
Would you mind adding a test case for this?
@elbrujohalcon I've actually wondered how this didn't break tests... I'm looking into adding some 👍 |
@srenatus that's probably because we lost 100% coverage when we split elvis and elvis_core =/ |
… set Signed-off-by: Stephan Renatus <[email protected]>
Thanks @srenatus !! |
@elbrujohalcon my pleasure -- thanks for being open to suggestions even when they change the defaults 😃 |
elvis_utils:print_info
will be suppressed whenverbose
is not set.elvis_utils:error
can only be suppressed by settingno_output
.