 db80e16aba
			
		
	
	
		db80e16aba
		
			
		
	
	
	
	
		
			
			* split config section into files. * extract anonymous types. * sort linters alphabetically.
		
			
				
	
	
		
			27 lines
		
	
	
		
			609 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			609 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package config
 | |
| 
 | |
| type Config struct {
 | |
| 	Run Run
 | |
| 
 | |
| 	Output Output
 | |
| 
 | |
| 	LintersSettings LintersSettings `mapstructure:"linters-settings"`
 | |
| 	Linters         Linters
 | |
| 	Issues          Issues
 | |
| 	Severity        Severity
 | |
| 	Version         Version
 | |
| 
 | |
| 	InternalCmdTest bool `mapstructure:"internal-cmd-test"` // Option is used only for testing golangci-lint command, don't use it
 | |
| 	InternalTest    bool // Option is used only for testing golangci-lint code, don't use it
 | |
| }
 | |
| 
 | |
| func NewDefault() *Config {
 | |
| 	return &Config{
 | |
| 		LintersSettings: defaultLintersSettings,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| type Version struct {
 | |
| 	Format string `mapstructure:"format"`
 | |
| }
 |