dev: clean up and used iota for exit codes (#2366)

This commit is contained in:
Alexander Melentyev 2021-11-18 21:52:21 +03:00 committed by GitHub
parent ef928947b5
commit b67af9afb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,14 @@
package exitcodes package exitcodes
const ( const (
Success = 0 Success = iota
IssuesFound = 1 IssuesFound
WarningInTest = 2 WarningInTest
Failure = 3 Failure
Timeout = 4 Timeout
NoGoFiles = 5 NoGoFiles
NoConfigFileDetected = 6 NoConfigFileDetected
ErrorWasLogged = 7 ErrorWasLogged
) )
type ExitError struct { type ExitError struct {
@ -30,5 +30,3 @@ var (
Code: Failure, Code: Failure,
} }
) )
// 1