mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-27 22:48:49 -04:00
dev: clean up and used iota for exit codes (#2366)
This commit is contained in:
parent
ef928947b5
commit
b67af9afb9
1 changed files with 8 additions and 10 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue