github.com/elek/golangci-lint@v1.42.2-0.20211208090441-c05b7fcb3a9a/pkg/config/config.go (about)

     1  package config
     2  
     3  type Config struct {
     4  	Run Run
     5  
     6  	Output Output
     7  
     8  	LintersSettings LintersSettings `mapstructure:"linters-settings"`
     9  	Linters         Linters
    10  	Issues          Issues
    11  	Severity        Severity
    12  	Version         Version
    13  
    14  	InternalCmdTest bool `mapstructure:"internal-cmd-test"` // Option is used only for testing golangci-lint command, don't use it
    15  	InternalTest    bool // Option is used only for testing golangci-lint code, don't use it
    16  }
    17  
    18  func NewDefault() *Config {
    19  	return &Config{
    20  		LintersSettings: defaultLintersSettings,
    21  	}
    22  }
    23  
    24  type Version struct {
    25  	Format string `mapstructure:"format"`
    26  }