Documentation ¶
Index ¶
- Constants
- Variables
- func NewTypesConfig(pass *analysis.Pass) (types.Config, error)
- type Analyzers
- type AnalyzersSettings
- type Config
- type Getters
- type Ifacenames
- type Mixedcaps
- type Nilslices
- type Pkgnames
- type Recvnames
- type Recvtype
- type Repetition
- type Typealiases
- type Underscores
- type Useany
- type Useq
- type Varnames
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"` Recvtype Recvtype `yaml:"recvtype"` Repetition Repetition `yaml:"repetition"` Typealiases Typealiases `yaml:"typealiases"` Underscores Underscores `yaml:"underscores"` Useany Useany `yaml:"useany"` Useq Useq `yaml:"useq"` 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 Recvtype ¶ added in v0.11.0
type Recvtype struct {
IncludeGenerated bool `yaml:"include-generated"`
}
type Repetition ¶ added in v0.8.0
type Typealiases ¶ added in v0.12.0
type Underscores ¶
type Useany ¶ added in v0.13.0
type Useany struct {
IncludeGenerated bool `yaml:"include-generated"`
}
type Varnames ¶ added in v0.7.0
type Varnames struct { Exclude []string `yaml:"exclude"` 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.