Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up and used iota for exit codes #2366

Merged
merged 1 commit into from Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 8 additions & 10 deletions pkg/exitcodes/exitcodes.go
@@ -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