dev: clean up and used iota for exit codes (#2366)
This commit is contained in:
parent
ef928947b5
commit
b67af9afb9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user