Documentation
¶
Index ¶
Constants ¶
View Source
const ( CyclomaticComplexity = "cyclo" UintTest = "unittest" BigFile = "bigFile" LongFunc = "longFunc" CopyCheck = "copyCheck" Security = "security" Syntax = "syntax" )
View Source
const ( Json = "json" Console = "console" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigFileConfig ¶
type BigFileConfig struct {
MaxLines int `yaml:"maxLines"`
}
type Config ¶
type Config struct { IgnoreError bool `yaml:"ignoreError"` ReportType string `yaml:"reportType"` Linters LintersConfig `yaml:"linters"` LintersSettings LintersSettingsConfig `yaml:"linters-settings"` }
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) UnmarshalYAML ¶
type CopyCheckConfig ¶
type CycloConfig ¶
type LintersConfig ¶
type LintersConfig struct {
Enable []string `yaml:"enable"`
}
type LintersSettingsConfig ¶
type LintersSettingsConfig struct { Cyclo CycloConfig `yaml:"cyclo"` BigFile BigFileConfig `yaml:"bigFile"` LongFunc LongFuncConfig `yaml:"longFunc"` CopyCheck CopyCheckConfig `yaml:"copyCheck"` Security SecurityConfig `yaml:"security"` }
type LongFuncConfig ¶
type LongFuncConfig struct {
MaxLength int `yaml:"maxLength"`
}
type SecurityConfig ¶
type SecurityConfig struct {
Env []string `yaml:"env"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.