Documentation
¶
Index ¶
- Constants
- type Golangci
- type Linters
- type Report
- type RuleCode
- type Settings
- type YamlGolangci
- type YamlLinters
- func (l YamlLinters) GetDisable() ([]string, bool)
- func (l YamlLinters) GetEnable() ([]string, bool)
- func (l YamlLinters) GetFieldNames() ([]string, bool)
- func (l YamlLinters) GetSettings() (Settings, bool)
- func (l YamlLinters) SortDisable() error
- func (l YamlLinters) SortEnable() error
- func (l YamlLinters) SortFields(expectedOrder map[string]int) error
- func (l YamlLinters) SortSettings() error
- type YamlSettings
Constants ¶
View Source
const ( GC001 = RuleCode("GC001") GC002 = RuleCode("GC002") GC013 = RuleCode("GC013") GC021 = RuleCode("GC021") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Golangci ¶
type YamlGolangci ¶
type YamlGolangci struct {
// contains filtered or unexported fields
}
func (YamlGolangci) GetComment ¶
func (g YamlGolangci) GetComment(path string) (string, bool)
func (YamlGolangci) GetLinters ¶
func (g YamlGolangci) GetLinters() (Linters, bool)
func (YamlGolangci) Marshal ¶
func (g YamlGolangci) Marshal() ([]byte, error)
type YamlLinters ¶
type YamlLinters struct {
// contains filtered or unexported fields
}
func (YamlLinters) GetDisable ¶
func (l YamlLinters) GetDisable() ([]string, bool)
func (YamlLinters) GetEnable ¶
func (l YamlLinters) GetEnable() ([]string, bool)
func (YamlLinters) GetFieldNames ¶
func (l YamlLinters) GetFieldNames() ([]string, bool)
func (YamlLinters) GetSettings ¶
func (l YamlLinters) GetSettings() (Settings, bool)
func (YamlLinters) SortDisable ¶
func (l YamlLinters) SortDisable() error
func (YamlLinters) SortEnable ¶
func (l YamlLinters) SortEnable() error
func (YamlLinters) SortFields ¶
func (l YamlLinters) SortFields(expectedOrder map[string]int) error
func (YamlLinters) SortSettings ¶
func (l YamlLinters) SortSettings() error
type YamlSettings ¶
type YamlSettings struct {
// contains filtered or unexported fields
}
func (YamlSettings) GetKeys ¶
func (y YamlSettings) GetKeys() ([]string, bool)
func (YamlSettings) GetSetting ¶
func (y YamlSettings) GetSetting(key string) (any, bool)
func (YamlSettings) Sort ¶
func (y YamlSettings) Sort() error
Click to show internal directories.
Click to hide internal directories.