Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultSmallScopeMax = 7 DefaultSmallVarnameMax = -1 DefaultMediumScopeMax = 15 DefaultMediumVarnameMax = -1 DefaultLargeScopeMax = 25 DefaultLargeVarnameMax = -1 DefaultVeryLargeVarnameMax = -1 )
Variables ¶
Functions ¶
Types ¶
type AnalyzersSettings ¶ added in v0.7.1
type AnalyzersSettings struct { Getters Getters `yaml:"getters"` Ifacenames Ifacenames `yaml:"ifacenames"` Mixedcaps Mixedcaps `yaml:"mixedcaps"` Nilslices Nilslices `yaml:"nilslices"` Pkgnames Pkgnames `yaml:"pkgnames"` Recvnames Recvnames `yaml:"recvnames"` Repetition Repetition `yaml:"repetition"` Underscores Underscores `yaml:"underscores"` Varnames Varnames `yaml:"varnames"` }
type Config ¶
type Config struct { Analyzers Analyzers `yaml:"analyzers"` AnalyzersSettings AnalyzersSettings `yaml:"analyzers-settings"` // contains filtered or unexported fields }
func (*Config) IsDisabled ¶
type Ifacenames ¶
type Nilslices ¶ added in v0.9.0
type Nilslices struct {
IncludeGenerated bool `yaml:"include-generated"`
}
type Repetition ¶ added in v0.8.0
type Underscores ¶
type Varnames ¶ added in v0.7.0
type Varnames struct { IncludeGenerated bool `yaml:"include-generated"` SmallScopeMax int `yaml:"small-scope-max"` SmallVarnameMax int `yaml:"small-varname-max"` MediumScopeMax int `yaml:"medium-scope-max"` MediumVarnameMax int `yaml:"medium-varname-max"` LargeScopeMax int `yaml:"large-scope-max"` LargeVarnameMax int `yaml:"large-varname-max"` VeryLargeVarnameMax int `yaml:"very-large-varname-max"` }
Click to show internal directories.
Click to hide internal directories.