linting, more testing, cleaning

This commit is contained in:
zricethezav committed 2018-03-02 16:55:02 -06:00
1 parent 36c31bf181
commit 0ed0489c2d
6 files changed
+113 -72

No files matched your search

+9 -4
View File
@@ -9,9 +9,14 @@ import (
_ "time"
)
const EXIT_CLEAN = 0
const EXIT_FAILURE = 1
const EXIT_LEAKS = 2
// ExitClean : no leaks have been found
const ExitClean = 0
// ExitFailure : gitleaks has encountered an error or SIGINT
const ExitFailure = 1
// ExitLeaks : leaks are present in scanned repos
const ExitLeaks = 2
// package globals
var (
@@ -55,5 +60,5 @@ func main() {
func failF(format string, args ...interface{}) {
fmt.Fprintf(os.Stderr, format, args...)
os.Exit(EXIT_FAILURE)
os.Exit(ExitFailure)
}