github.com/nozzle/golangci-lint@v1.49.0-nz3/pkg/config/output.go (about)

     1  package config
     2  
     3  const (
     4  	OutFormatJSON              = "json"
     5  	OutFormatLineNumber        = "line-number"
     6  	OutFormatColoredLineNumber = "colored-line-number"
     7  	OutFormatTab               = "tab"
     8  	OutFormatCheckstyle        = "checkstyle"
     9  	OutFormatCodeClimate       = "code-climate"
    10  	OutFormatHTML              = "html"
    11  	OutFormatJunitXML          = "junit-xml"
    12  	OutFormatGithubActions     = "github-actions"
    13  )
    14  
    15  var OutFormats = []string{
    16  	OutFormatColoredLineNumber,
    17  	OutFormatLineNumber,
    18  	OutFormatJSON,
    19  	OutFormatTab,
    20  	OutFormatCheckstyle,
    21  	OutFormatCodeClimate,
    22  	OutFormatHTML,
    23  	OutFormatJunitXML,
    24  	OutFormatGithubActions,
    25  }
    26  
    27  type Output struct {
    28  	Format              string
    29  	Color               string
    30  	PrintIssuedLine     bool   `mapstructure:"print-issued-lines"`
    31  	PrintLinterName     bool   `mapstructure:"print-linter-name"`
    32  	UniqByLine          bool   `mapstructure:"uniq-by-line"`
    33  	SortResults         bool   `mapstructure:"sort-results"`
    34  	PrintWelcomeMessage bool   `mapstructure:"print-welcome"`
    35  	PathPrefix          string `mapstructure:"path-prefix"`
    36  }