Documentation ¶
Index ¶
- Constants
- func NewBodyclose() *goanalysis.Linter
- func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
- type Change
- type Deadcode
- type Depguard
- type Dupl
- type Errcheck
- type Gochecknoglobals
- type Gochecknoinits
- type Goconst
- type Gocritic
- type Gocyclo
- type Gofmt
- type Golint
- type Gosec
- type Gosimple
- type Ineffassign
- type Interfacer
- type Lll
- type Maligned
- type MegacheckMetalinter
- type Misspell
- type Nakedret
- type Node
- type Prealloc
- type Scopelint
- type Staticcheck
- type Structcheck
- type Stylecheck
- type TypeCheck
- type Unconvert
- type Unparam
- type Unused
- type Varcheck
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.2
func NewBodyclose() *goanalysis.Linter
func NewGovet ¶ added in v1.17.2
func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
Types ¶
type Change ¶ added in v1.17.2
type Change struct { LineRange result.Range Replacement result.Replacement }
type Gochecknoglobals ¶ added in v1.17.2
type Gochecknoglobals struct{}
func (Gochecknoglobals) Desc ¶ added in v1.17.2
func (Gochecknoglobals) Desc() string
func (Gochecknoglobals) Name ¶ added in v1.17.2
func (Gochecknoglobals) Name() string
type Gochecknoinits ¶ added in v1.17.2
type Gochecknoinits struct{}
func (Gochecknoinits) Desc ¶ added in v1.17.2
func (Gochecknoinits) Desc() string
func (Gochecknoinits) Name ¶ added in v1.17.2
func (Gochecknoinits) Name() string
type Gosimple ¶ added in v1.17.2
type Gosimple struct {
// contains filtered or unexported fields
}
func NewGosimple ¶ added in v1.17.2
func NewGosimple() *Gosimple
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.17.2
type MegacheckMetalinter struct{}
func (MegacheckMetalinter) AllChildLinterNames ¶ added in v1.17.2
func (m MegacheckMetalinter) AllChildLinterNames() []string
func (MegacheckMetalinter) BuildLinterConfig ¶ added in v1.17.2
func (MegacheckMetalinter) BuildLinterConfig(enabledChildren []string) (*linter.Config, error)
func (MegacheckMetalinter) DefaultChildLinterNames ¶ added in v1.17.2
func (MegacheckMetalinter) DefaultChildLinterNames() []string
func (MegacheckMetalinter) Name ¶ added in v1.17.2
func (MegacheckMetalinter) Name() string
type Misspell ¶ added in v1.8.1
type Misspell struct{}
func NewMisspell ¶ added in v1.17.2
func NewMisspell() *Misspell
type Node ¶ added in v1.17.2
type Node struct {
// contains filtered or unexported fields
}
Node represents a Node being linted.
type Staticcheck ¶ added in v1.17.2
type Staticcheck struct {
// contains filtered or unexported fields
}
func NewStaticcheck ¶ added in v1.17.2
func NewStaticcheck() *Staticcheck
func (Staticcheck) Desc ¶ added in v1.17.2
func (Staticcheck) Desc() string
func (Staticcheck) Name ¶ added in v1.17.2
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.17.2
type Stylecheck struct {
// contains filtered or unexported fields
}
func NewStylecheck ¶ added in v1.17.2
func NewStylecheck() *Stylecheck
func (Stylecheck) Desc ¶ added in v1.17.2
func (Stylecheck) Desc() string
func (Stylecheck) Name ¶ added in v1.17.2
func (Stylecheck) Name() string
Source Files ¶
- bodyclose.go
- deadcode.go
- depguard.go
- dupl.go
- errcheck.go
- gochecknoglobals.go
- gochecknoinits.go
- goconst.go
- gocritic.go
- gocyclo.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
Directories ¶
Path | Synopsis |
---|---|
checker
Package checker defines the implementation of the checker commands.
|
Package checker defines the implementation of the checker commands. |
passes/nilness
This is a copy of https://github.com/golang/tools/blob/master/go/analysis/passes/nilness/nilness.go from the commit f0bfdbff1f9c986484a9f02fc198b1efcfe76ebe.
|
This is a copy of https://github.com/golang/tools/blob/master/go/analysis/passes/nilness/nilness.go from the commit f0bfdbff1f9c986484a9f02fc198b1efcfe76ebe. |
Click to show internal directories.
Click to hide internal directories.