Skip to content
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

Merged
merged 2 commits into from
Jun 6, 2017

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Jun 6, 2017

elvis_utils:print_info will be suppressed when verbose is not set. elvis_utils:error can only be suppressed by setting no_output.


-spec error(string()) -> ok.
error(Message) ->
error(Message, []).
Copy link
Member

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]>
@srenatus srenatus force-pushed the sr/add-verbosity-to-config branch from 162b73d to a65b524 Compare June 6, 2017 07:55
Copy link
Member

@elbrujohalcon elbrujohalcon left a 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?

@srenatus
Copy link
Contributor Author

srenatus commented Jun 6, 2017

@elbrujohalcon I've actually wondered how this didn't break tests... I'm looking into adding some 👍

@elbrujohalcon
Copy link
Member

@srenatus that's probably because we lost 100% coverage when we split elvis and elvis_core =/

@elbrujohalcon
Copy link
Member

Thanks @srenatus !!

@elbrujohalcon elbrujohalcon merged commit e588bda into inaka:master Jun 6, 2017
@srenatus srenatus deleted the sr/add-verbosity-to-config branch June 6, 2017 13:55
@srenatus
Copy link
Contributor Author

srenatus commented Jun 6, 2017

@elbrujohalcon my pleasure -- thanks for being open to suggestions even when they change the defaults 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants