www.github.com/golangci/golangci-lint.git@v1.10.1/pkg/exitcodes/exitcodes.go (about)

     1  package exitcodes
     2  
     3  const (
     4  	Success       = 0
     5  	IssuesFound   = 1
     6  	WarningInTest = 2
     7  	Failure       = 3
     8  	Timeout       = 4
     9  	NoGoFiles     = 5
    10  )
    11  
    12  type ExitError struct {
    13  	Message string
    14  	Code    int
    15  }
    16  
    17  func (e ExitError) Error() string {
    18  	return e.Message
    19  }
    20  
    21  var (
    22  	ErrNoGoFiles = &ExitError{
    23  		Message: "no go files to analyze",
    24  		Code:    NoGoFiles,
    25  	}
    26  )