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
const (
Success = 0
IssuesFound = 1
WarningInTest = 2
Failure = 3
Timeout = 4
NoGoFiles = 5
NoConfigFileDetected = 6
ErrorWasLogged = 7
Success = iota
IssuesFound
WarningInTest
Failure
Timeout
NoGoFiles
NoConfigFileDetected
ErrorWasLogged
)
type ExitError struct {
@ -30,5 +30,3 @@ var (
Code: Failure,
}
)
// 1