Documentation ¶
Index ¶
- Constants
- func NewAsciicheck() *goanalysis.Linter
- func NewBiDiChkFuncName(cfg *config.BiDiChkSettings) *goanalysis.Linter
- func NewBodyclose() *goanalysis.Linter
- func NewContextCheck() *goanalysis.Linter
- func NewCyclop(settings *config.Cyclop) *goanalysis.Linter
- func NewDeadcode() *goanalysis.Linter
- func NewDepguard() *goanalysis.Linter
- func NewDogsled() *goanalysis.Linter
- func NewDupl() *goanalysis.Linter
- func NewDurationCheck() *goanalysis.Linter
- func NewErrName() *goanalysis.Linter
- func NewErrcheck() *goanalysis.Linter
- func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
- func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
- func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
- func NewExportLoopRef() *goanalysis.Linter
- func NewForbidigo() *goanalysis.Linter
- func NewForceTypeAssert() *goanalysis.Linter
- func NewFunlen() *goanalysis.Linter
- func NewGci() *goanalysis.Linter
- func NewGoHeader() *goanalysis.Linter
- func NewGoMND(cfg *config.Config) *goanalysis.Linter
- func NewGoModDirectives(settings *config.GoModDirectivesSettings) *goanalysis.Linter
- func NewGoPrintfFuncName() *goanalysis.Linter
- func NewGochecknoglobals() *goanalysis.Linter
- func NewGochecknoinits() *goanalysis.Linter
- func NewGocognit() *goanalysis.Linter
- func NewGoconst() *goanalysis.Linter
- func NewGocritic() *goanalysis.Linter
- func NewGocyclo() *goanalysis.Linter
- func NewGodot() *goanalysis.Linter
- func NewGodox() *goanalysis.Linter
- func NewGoerr113() *goanalysis.Linter
- func NewGofmt() *goanalysis.Linter
- func NewGofumpt() *goanalysis.Linter
- func NewGoimports() *goanalysis.Linter
- func NewGolint() *goanalysis.Linter
- func NewGomodguard() *goanalysis.Linter
- func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter
- func NewGosimple(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
- func NewIfshort(settings *config.IfshortSettings) *goanalysis.Linter
- func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter
- func NewIneffassign() *goanalysis.Linter
- func NewInterfacer() *goanalysis.Linter
- func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
- func NewLLL() *goanalysis.Linter
- func NewMakezero() *goanalysis.Linter
- func NewMaligned() *goanalysis.Linter
- func NewMisspell() *goanalysis.Linter
- func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
- func NewNakedret() *goanalysis.Linter
- func NewNestif() *goanalysis.Linter
- func NewNilErr() *goanalysis.Linter
- func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
- func NewNoLintLint() *goanalysis.Linter
- func NewNoctx() *goanalysis.Linter
- func NewParallelTest() *goanalysis.Linter
- func NewPrealloc() *goanalysis.Linter
- func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
- func NewPromlinter() *goanalysis.Linter
- func NewRevive(cfg *config.ReviveSettings) *goanalysis.Linter
- func NewRowsErrCheck() *goanalysis.Linter
- func NewSQLCloseCheck() *goanalysis.Linter
- func NewSamealias() *goanalysis.Linter
- func NewScopelint() *goanalysis.Linter
- func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewStructcheck() *goanalysis.Linter
- func NewStylecheck(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
- func NewTenv(settings *config.TenvSettings) *goanalysis.Linter
- func NewTestpackage(cfg *config.TestpackageSettings) *goanalysis.Linter
- func NewThelper(cfg *config.ThelperSettings) *goanalysis.Linter
- func NewTparallel() *goanalysis.Linter
- func NewTypecheck() *goanalysis.Linter
- func NewUnconvert() *goanalysis.Linter
- func NewUnparam() *goanalysis.Linter
- func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewVarcheck() *goanalysis.Linter
- func NewVarnamelen(settings *config.VarnamelenSettings) *goanalysis.Linter
- func NewWSL() *goanalysis.Linter
- func NewWastedAssign() *goanalysis.Linter
- func NewWhitespace() *goanalysis.Linter
- func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter
- type Change
- type Node
- type UnusedSettings
Constants ¶
View Source
const NolintlintName = "nolintlint"
Variables ¶
This section is empty.
Functions ¶
func NewAsciicheck ¶ added in v1.42.2
func NewAsciicheck() *goanalysis.Linter
func NewBiDiChkFuncName ¶ added in v1.42.3
func NewBiDiChkFuncName(cfg *config.BiDiChkSettings) *goanalysis.Linter
func NewBodyclose ¶ added in v1.42.2
func NewBodyclose() *goanalysis.Linter
func NewContextCheck ¶ added in v1.42.3
func NewContextCheck() *goanalysis.Linter
func NewDeadcode ¶ added in v1.42.2
func NewDeadcode() *goanalysis.Linter
func NewDepguard ¶ added in v1.42.2
func NewDepguard() *goanalysis.Linter
func NewDogsled ¶ added in v1.42.2
func NewDogsled() *goanalysis.Linter
func NewDupl ¶ added in v1.42.2
func NewDupl() *goanalysis.Linter
func NewDurationCheck ¶ added in v1.42.2
func NewDurationCheck() *goanalysis.Linter
func NewErrName ¶ added in v1.42.2
func NewErrName() *goanalysis.Linter
func NewErrcheck ¶ added in v1.42.2
func NewErrcheck() *goanalysis.Linter
func NewErrorLint ¶ added in v1.42.2
func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
func NewExhaustive ¶ added in v1.42.2
func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
func NewExhaustiveStruct ¶ added in v1.42.2
func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
func NewExportLoopRef ¶ added in v1.42.2
func NewExportLoopRef() *goanalysis.Linter
func NewForbidigo ¶ added in v1.42.2
func NewForbidigo() *goanalysis.Linter
func NewForceTypeAssert ¶ added in v1.42.2
func NewForceTypeAssert() *goanalysis.Linter
func NewFunlen ¶ added in v1.42.2
func NewFunlen() *goanalysis.Linter
func NewGci ¶ added in v1.42.2
func NewGci() *goanalysis.Linter
func NewGoHeader ¶ added in v1.42.2
func NewGoHeader() *goanalysis.Linter
func NewGoModDirectives ¶ added in v1.42.2
func NewGoModDirectives(settings *config.GoModDirectivesSettings) *goanalysis.Linter
NewGoModDirectives returns a new gomoddirectives linter.
func NewGoPrintfFuncName ¶ added in v1.42.2
func NewGoPrintfFuncName() *goanalysis.Linter
func NewGochecknoglobals ¶ added in v1.42.2
func NewGochecknoglobals() *goanalysis.Linter
func NewGochecknoinits ¶ added in v1.42.2
func NewGochecknoinits() *goanalysis.Linter
func NewGocognit ¶ added in v1.42.2
func NewGocognit() *goanalysis.Linter
func NewGoconst ¶ added in v1.42.2
func NewGoconst() *goanalysis.Linter
func NewGocritic ¶ added in v1.42.2
func NewGocritic() *goanalysis.Linter
func NewGocyclo ¶ added in v1.42.2
func NewGocyclo() *goanalysis.Linter
func NewGodot ¶ added in v1.42.2
func NewGodot() *goanalysis.Linter
func NewGodox ¶ added in v1.42.2
func NewGodox() *goanalysis.Linter
func NewGoerr113 ¶ added in v1.42.2
func NewGoerr113() *goanalysis.Linter
func NewGofmt ¶ added in v1.42.2
func NewGofmt() *goanalysis.Linter
func NewGofumpt ¶ added in v1.42.2
func NewGofumpt() *goanalysis.Linter
func NewGoimports ¶ added in v1.42.2
func NewGoimports() *goanalysis.Linter
func NewGolint ¶ added in v1.42.2
func NewGolint() *goanalysis.Linter
func NewGomodguard ¶ added in v1.42.2
func NewGomodguard() *goanalysis.Linter
NewGomodguard returns a new Gomodguard linter.
func NewGosec ¶ added in v1.42.2
func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter
func NewGosimple ¶ added in v1.42.2
func NewGosimple(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewGovet ¶ added in v1.42.2
func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter
func NewIfshort ¶ added in v1.42.2
func NewIfshort(settings *config.IfshortSettings) *goanalysis.Linter
func NewImportAs ¶ added in v1.42.2
func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter
func NewIneffassign ¶ added in v1.42.2
func NewIneffassign() *goanalysis.Linter
func NewInterfacer ¶ added in v1.42.2
func NewInterfacer() *goanalysis.Linter
func NewIreturn ¶ added in v1.42.3
func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
func NewLLL ¶ added in v1.42.2
func NewLLL() *goanalysis.Linter
func NewMakezero ¶ added in v1.42.2
func NewMakezero() *goanalysis.Linter
func NewMaligned ¶ added in v1.42.2
func NewMaligned() *goanalysis.Linter
func NewMisspell ¶ added in v1.42.2
func NewMisspell() *goanalysis.Linter
func NewNLReturn ¶ added in v1.42.2
func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
func NewNakedret ¶ added in v1.42.2
func NewNakedret() *goanalysis.Linter
func NewNestif ¶ added in v1.42.2
func NewNestif() *goanalysis.Linter
func NewNilErr ¶ added in v1.42.2
func NewNilErr() *goanalysis.Linter
func NewNilNil ¶ added in v1.42.3
func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
func NewNoLintLint ¶ added in v1.42.2
func NewNoLintLint() *goanalysis.Linter
func NewNoctx ¶ added in v1.42.2
func NewNoctx() *goanalysis.Linter
func NewParallelTest ¶ added in v1.42.2
func NewParallelTest() *goanalysis.Linter
func NewPrealloc ¶ added in v1.42.2
func NewPrealloc() *goanalysis.Linter
func NewPredeclared ¶ added in v1.42.2
func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
func NewPromlinter ¶ added in v1.42.2
func NewPromlinter() *goanalysis.Linter
func NewRevive ¶ added in v1.42.2
func NewRevive(cfg *config.ReviveSettings) *goanalysis.Linter
NewRevive returns a new Revive linter.
func NewRowsErrCheck ¶ added in v1.42.2
func NewRowsErrCheck() *goanalysis.Linter
func NewSQLCloseCheck ¶ added in v1.42.2
func NewSQLCloseCheck() *goanalysis.Linter
func NewSamealias ¶ added in v1.43.2
func NewSamealias() *goanalysis.Linter
func NewScopelint ¶ added in v1.42.2
func NewScopelint() *goanalysis.Linter
func NewStaticcheck ¶ added in v1.42.2
func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewStructcheck ¶ added in v1.42.2
func NewStructcheck() *goanalysis.Linter
func NewStylecheck ¶ added in v1.42.2
func NewStylecheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewTagliatelle ¶ added in v1.42.2
func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
func NewTenv ¶ added in v1.42.3
func NewTenv(settings *config.TenvSettings) *goanalysis.Linter
func NewTestpackage ¶ added in v1.42.2
func NewTestpackage(cfg *config.TestpackageSettings) *goanalysis.Linter
func NewThelper ¶ added in v1.42.2
func NewThelper(cfg *config.ThelperSettings) *goanalysis.Linter
func NewTparallel ¶ added in v1.42.2
func NewTparallel() *goanalysis.Linter
func NewTypecheck ¶ added in v1.42.2
func NewTypecheck() *goanalysis.Linter
func NewUnconvert ¶ added in v1.42.2
func NewUnconvert() *goanalysis.Linter
func NewUnparam ¶ added in v1.42.2
func NewUnparam() *goanalysis.Linter
func NewUnused ¶ added in v1.42.2
func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewVarcheck ¶ added in v1.42.2
func NewVarcheck() *goanalysis.Linter
func NewVarnamelen ¶ added in v1.42.3
func NewVarnamelen(settings *config.VarnamelenSettings) *goanalysis.Linter
func NewWastedAssign ¶ added in v1.42.2
func NewWastedAssign() *goanalysis.Linter
func NewWhitespace ¶ added in v1.42.2
func NewWhitespace() *goanalysis.Linter
func NewWrapcheck ¶ added in v1.42.2
func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter
Types ¶
type Change ¶ added in v1.42.2
type Change struct { LineRange result.Range Replacement result.Replacement }
type Node ¶ added in v1.42.2
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 UnusedSettings ¶ added in v1.42.2
type UnusedSettings struct {
GoVersion string
}
Source Files ¶
- asciicheck.go
- bidichk.go
- bodyclose.go
- contextcheck.go
- cyclop.go
- deadcode.go
- depguard.go
- dogsled.go
- dupl.go
- durationcheck.go
- errcheck.go
- errname.go
- errorlint.go
- exhaustive.go
- exhaustivestruct.go
- exportloopref.go
- forbidigo.go
- forcetypeassert.go
- funlen.go
- gci.go
- gochecknoglobals.go
- gochecknoinits.go
- gocognit.go
- goconst.go
- gocritic.go
- gocyclo.go
- godot.go
- godox.go
- goerr113.go
- gofmt.go
- gofmt_common.go
- gofumpt.go
- goheader.go
- goimports.go
- golint.go
- gomnd.go
- gomoddirectives.go
- gomodguard.go
- goprintffuncname.go
- gosec.go
- gosimple.go
- govet.go
- ifshort.go
- importas.go
- ineffassign.go
- interfacer.go
- ireturn.go
- lll.go
- makezero.go
- maligned.go
- misspell.go
- nakedret.go
- nestif.go
- nilerr.go
- nilnil.go
- nlreturn.go
- noctx.go
- nolintlint.go
- paralleltest.go
- prealloc.go
- predeclared.go
- promlinter.go
- revive.go
- rowerrcheck.go
- samealias.go
- scopelint.go
- sqlclosecheck.go
- staticcheck.go
- staticcheck_common.go
- structcheck.go
- stylecheck.go
- tagliatelle.go
- tenv.go
- testpackage.go
- thelper.go
- tparallel.go
- typecheck.go
- unconvert.go
- unparam.go
- unused.go
- util.go
- varcheck.go
- varnamelen.go
- wastedassign.go
- whitespace.go
- wrapcheck.go
- wsl.go
Directories ¶
Path | Synopsis |
---|---|
Package goanalysis defines the implementation of the checker commands.
|
Package goanalysis defines the implementation of the checker commands. |
Package nolintlint provides a linter to ensure that all //nolint directives are followed by explanations
|
Package nolintlint provides a linter to ensure that all //nolint directives are followed by explanations |
Click to show internal directories.
Click to hide internal directories.