mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
disable the congrats message
There is now an extra switch '-s' to disable the congrats message when there are no issues detected Fixes: #110
This commit is contained in:
parent
2de1f87c10
commit
f239b80ce1
7 changed files with 25 additions and 8 deletions
|
@ -33,6 +33,12 @@ func checkNoIssuesRun(t *testing.T, out string, exitCode int) {
|
|||
assert.Equal(t, "Congrats! No issues were found.\n", out)
|
||||
}
|
||||
|
||||
func TestCongratsMessageGoneIfSilent(t *testing.T) {
|
||||
out, exitCode := runGolangciLint(t, "../...", "-s")
|
||||
assert.Equal(t, exitcodes.Success, exitCode)
|
||||
assert.Equal(t, "", out)
|
||||
}
|
||||
|
||||
func TestCongratsMessageIfNoIssues(t *testing.T) {
|
||||
out, exitCode := runGolangciLint(t, "../...")
|
||||
checkNoIssuesRun(t, out, exitCode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue