Skip to content

Commit

Permalink
dev: clean up and used iota for exit codes (golangci#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored and SeigeC committed Apr 4, 2023
1 parent 025fb3c commit 3d9f54b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions pkg/exitcodes/exitcodes.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -30,5 +30,3 @@ var (
Code: Failure,
}
)

// 1

0 comments on commit 3d9f54b

Please sign in to comment.