Documentation ¶
Index ¶
- Constants
- func NewBodyclose() *goanalysis.Linter
- func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
- type Change
- type Deadcode
- type Depguard
- type Dogsled
- type Dupl
- type Errcheck
- type Funlen
- type Gochecknoglobals
- type Gochecknoinits
- type Goconst
- type Gocritic
- type Gocyclo
- type Godox
- type Gofmt
- type Golint
- type Gosec
- type Gosimple
- func (m Gosimple) AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
- func (m Gosimple) Analyzers() []*analysis.Analyzer
- func (Gosimple) Cfg() map[string]map[string]interface{}
- func (Gosimple) Desc() string
- func (Gosimple) Name() string
- func (m Gosimple) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)
- type Ineffassign
- type Interfacer
- type Lll
- type Maligned
- type MegacheckMetalinter
- type Misspell
- type Nakedret
- type Node
- type Prealloc
- type Scopelint
- type Staticcheck
- func (m Staticcheck) AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
- func (m Staticcheck) Analyzers() []*analysis.Analyzer
- func (Staticcheck) Cfg() map[string]map[string]interface{}
- func (Staticcheck) Desc() string
- func (Staticcheck) Name() string
- func (m Staticcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)
- type Structcheck
- type Stylecheck
- func (m Stylecheck) AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
- func (m Stylecheck) Analyzers() []*analysis.Analyzer
- func (Stylecheck) Cfg() map[string]map[string]interface{}
- func (Stylecheck) Desc() string
- func (Stylecheck) Name() string
- func (m Stylecheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)
- type TypeCheck
- type Unconvert
- type Unparam
- type Unused
- func (m Unused) AnalyzerToLinterNameMapping() map[*analysis.Analyzer]string
- func (m Unused) Analyzers() []*analysis.Analyzer
- func (Unused) Cfg() map[string]map[string]interface{}
- func (Unused) Desc() string
- func (Unused) Name() string
- func (m Unused) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)
- type Varcheck
- type Whitespace
Constants ¶
View Source
const ( MegacheckParentName = "megacheck" MegacheckStaticcheckName = "staticcheck" MegacheckUnusedName = "unused" MegacheckGosimpleName = "gosimple" MegacheckStylecheckName = "stylecheck" )
Variables ¶
This section is empty.
Functions ¶
func NewBodyclose ¶ added in v1.17.0
func NewBodyclose() *goanalysis.Linter
func NewGovet ¶ added in v1.16.0
func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
Types ¶
type Change ¶ added in v1.15.0
type Change struct { LineRange result.Range Replacement result.Replacement }
type Gochecknoglobals ¶ added in v1.12.1
type Gochecknoglobals struct{}
func (Gochecknoglobals) Desc ¶ added in v1.12.1
func (Gochecknoglobals) Desc() string
func (Gochecknoglobals) Name ¶ added in v1.12.1
func (Gochecknoglobals) Name() string
type Gochecknoinits ¶ added in v1.12.1
type Gochecknoinits struct{}
func (Gochecknoinits) Desc ¶ added in v1.12.1
func (Gochecknoinits) Desc() string
func (Gochecknoinits) Name ¶ added in v1.12.1
func (Gochecknoinits) Name() string
type Gosimple ¶ added in v1.13.1
type Gosimple struct {
// contains filtered or unexported fields
}
func NewGosimple ¶ added in v1.13.1
func NewGosimple() *Gosimple
func (Gosimple) AnalyzerToLinterNameMapping ¶ added in v1.19.0
type Ineffassign ¶
type Ineffassign struct{}
func (Ineffassign) Desc ¶
func (Ineffassign) Desc() string
func (Ineffassign) Name ¶
func (Ineffassign) Name() string
type Interfacer ¶
type Interfacer struct{}
func (Interfacer) Desc ¶
func (Interfacer) Desc() string
func (Interfacer) Name ¶
func (Interfacer) Name() string
type MegacheckMetalinter ¶ added in v1.13.1
type MegacheckMetalinter struct{}
func (MegacheckMetalinter) AllChildLinterNames ¶ added in v1.13.1
func (m MegacheckMetalinter) AllChildLinterNames() []string
func (MegacheckMetalinter) BuildLinterConfig ¶ added in v1.13.1
func (MegacheckMetalinter) BuildLinterConfig(enabledChildren []string) (*linter.Config, error)
func (MegacheckMetalinter) DefaultChildLinterNames ¶ added in v1.13.1
func (MegacheckMetalinter) DefaultChildLinterNames() []string
func (MegacheckMetalinter) Name ¶ added in v1.13.1
func (MegacheckMetalinter) Name() string
type Misspell ¶ added in v1.8.1
type Misspell struct{}
func NewMisspell ¶ added in v1.17.0
func NewMisspell() *Misspell
type Node ¶ added in v1.12.1
type Node struct { DangerObjects map[*ast.Object]int UnsafeObjects map[*ast.Object]int SkipFuncs map[*ast.FuncLit]int // contains filtered or unexported fields }
Node represents a Node being linted.
type Staticcheck ¶ added in v1.13.1
type Staticcheck struct {
// contains filtered or unexported fields
}
func NewStaticcheck ¶ added in v1.13.1
func NewStaticcheck() *Staticcheck
func (Staticcheck) AnalyzerToLinterNameMapping ¶ added in v1.19.0
func (Staticcheck) Desc ¶ added in v1.13.1
func (Staticcheck) Desc() string
func (Staticcheck) Name ¶ added in v1.13.1
func (Staticcheck) Name() string
type Structcheck ¶
type Structcheck struct{}
func (Structcheck) Desc ¶
func (Structcheck) Desc() string
func (Structcheck) Name ¶
func (Structcheck) Name() string
type Stylecheck ¶ added in v1.13.1
type Stylecheck struct {
// contains filtered or unexported fields
}
func NewStylecheck ¶ added in v1.13.1
func NewStylecheck() *Stylecheck
func (Stylecheck) AnalyzerToLinterNameMapping ¶ added in v1.19.0
func (Stylecheck) Desc ¶ added in v1.13.1
func (Stylecheck) Desc() string
func (Stylecheck) Name ¶ added in v1.13.1
func (Stylecheck) Name() string
type Unused ¶ added in v1.13.1
type Unused struct {
// contains filtered or unexported fields
}
func (Unused) AnalyzerToLinterNameMapping ¶ added in v1.19.0
type Whitespace ¶ added in v1.19.0
type Whitespace struct { }
func (Whitespace) Desc ¶ added in v1.19.0
func (Whitespace) Desc() string
func (Whitespace) Name ¶ added in v1.19.0
func (Whitespace) Name() string
Source Files ¶
- bodyclose.go
- deadcode.go
- depguard.go
- dogsled.go
- dupl.go
- errcheck.go
- funlen.go
- gochecknoglobals.go
- gochecknoinits.go
- goconst.go
- gocritic.go
- gocyclo.go
- godox.go
- gofmt.go
- golint.go
- gosec.go
- govet.go
- ineffassign.go
- interfacer.go
- lll.go
- maligned.go
- megacheck.go
- misspell.go
- nakedret.go
- prealloc.go
- scopelint.go
- structcheck.go
- typecheck.go
- unconvert.go
- unparam.go
- util.go
- varcheck.go
- whitespace.go
Directories ¶
Path | Synopsis |
---|---|
Package checker defines the implementation of the checker commands.
|
Package checker defines the implementation of the checker commands. |
Click to show internal directories.
Click to hide internal directories.