-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Suppress congrats message #110
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
Comments
Hi, |
The use case is simply to reduce noise. Our integration servers runs a lot of stuff and having to scroll through "positives" to find any errors just adds some overhead. Not much but it adds up from all the tools we use. |
I can implement it if you think it would be a good addition. |
@jirfag this breaks Unix Rule of Silence [1], which states that programs should, by default, say nothing. [1] http://www.linfo.org/rule_of_silence.html ps. Probably the same is true for json
does not seem very helpful. |
@dahankzter it will be great if you will implement it. |
Thanks @jirfag, congrats on this awesome tool! |
Indeed an awesome tool! Ill get back with a PR asap. |
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: golangci#110
I submitted some code for this @jirfag |
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: golangci#110
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: golangci#110
I agree that the human-readable output should follow the "rule of silcence" whenever feasible @mmatczuk , but I'm not sure about the JSON:
An empty string can't be parsed by most (all?) JSON parsers, so people implementing this need to add an extra if The "rule of silence" is for user interfaces, but the JSON output isn't a user interface but a programming API to integrate the tool with editors etc. I don't think that having it follow the same rules make sense. |
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: golangci#110
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: golangci#110
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: #110
I personally think that -s should be the default. The UNIX philosophy to check if a command was successful is to check the status ( The UNIX philosophy calls this "the rule of silence":
|
It would be nice to be able to suppress the congrats message:
Congrats! No issues were found
Perhaps a flag:
--no-congrats
or something?The text was updated successfully, but these errors were encountered: