42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package config
 | 
						|
 | 
						|
const (
 | 
						|
	OutFormatJSON              = "json"
 | 
						|
	OutFormatLineNumber        = "line-number"
 | 
						|
	OutFormatColoredLineNumber = "colored-line-number"
 | 
						|
	OutFormatTab               = "tab"
 | 
						|
	OutFormatColoredTab        = "colored-tab"
 | 
						|
	OutFormatCheckstyle        = "checkstyle"
 | 
						|
	OutFormatCodeClimate       = "code-climate"
 | 
						|
	OutFormatHTML              = "html"
 | 
						|
	OutFormatJunitXML          = "junit-xml"
 | 
						|
	OutFormatGithubActions     = "github-actions"
 | 
						|
	OutFormatTeamCity          = "teamcity"
 | 
						|
)
 | 
						|
 | 
						|
var OutFormats = []string{
 | 
						|
	OutFormatColoredLineNumber,
 | 
						|
	OutFormatLineNumber,
 | 
						|
	OutFormatJSON,
 | 
						|
	OutFormatTab,
 | 
						|
	OutFormatCheckstyle,
 | 
						|
	OutFormatCodeClimate,
 | 
						|
	OutFormatHTML,
 | 
						|
	OutFormatJunitXML,
 | 
						|
	OutFormatGithubActions,
 | 
						|
	OutFormatTeamCity,
 | 
						|
}
 | 
						|
 | 
						|
type Output struct {
 | 
						|
	Format              string
 | 
						|
	PrintIssuedLine     bool   `mapstructure:"print-issued-lines"`
 | 
						|
	PrintLinterName     bool   `mapstructure:"print-linter-name"`
 | 
						|
	UniqByLine          bool   `mapstructure:"uniq-by-line"`
 | 
						|
	SortResults         bool   `mapstructure:"sort-results"`
 | 
						|
	PrintWelcomeMessage bool   `mapstructure:"print-welcome"`
 | 
						|
	PathPrefix          string `mapstructure:"path-prefix"`
 | 
						|
 | 
						|
	// only work with CLI flags because the setup of logs is done before the config file parsing.
 | 
						|
	Color string
 | 
						|
}
 |