Documentation ¶
Index ¶
- Constants
- func NewAsasalint(setting *config.AsasalintSettings) *goanalysis.Linter
- func NewAsciicheck() *goanalysis.Linter
- func NewBiDiChkFuncName(cfg *config.BiDiChkSettings) *goanalysis.Linter
- func NewBodyclose() *goanalysis.Linter
- func NewContainedCtx() *goanalysis.Linter
- func NewContextCheck() *goanalysis.Linter
- func NewCyclop(settings *config.Cyclop) *goanalysis.Linter
- func NewDeadcode() *goanalysis.Linter
- func NewDecorder(settings *config.DecorderSettings) *goanalysis.Linter
- func NewDepguard(settings *config.DepGuardSettings) *goanalysis.Linter
- func NewDogsled(settings *config.DogsledSettings) *goanalysis.Linter
- func NewDupl(settings *config.DuplSettings) *goanalysis.Linter
- func NewDurationCheck() *goanalysis.Linter
- func NewErrChkJSONFuncName(cfg *config.ErrChkJSONSettings) *goanalysis.Linter
- func NewErrName() *goanalysis.Linter
- func NewErrcheck(settings *config.ErrcheckSettings) *goanalysis.Linter
- func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
- func NewExecInQuery() *goanalysis.Linter
- func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
- func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
- func NewExhaustruct(settings *config.ExhaustructSettings) *goanalysis.Linter
- func NewExportLoopRef() *goanalysis.Linter
- func NewForbidigo(settings *config.ForbidigoSettings) *goanalysis.Linter
- func NewForceTypeAssert() *goanalysis.Linter
- func NewFunlen(settings *config.FunlenSettings) *goanalysis.Linter
- func NewGci(settings *config.GciSettings) *goanalysis.Linter
- func NewGoCritic(settings *config.GoCriticSettings, cfg *config.Config) *goanalysis.Linter
- func NewGoHeader(settings *config.GoHeaderSettings) *goanalysis.Linter
- func NewGoMND(settings *config.GoMndSettings) *goanalysis.Linter
- func NewGoModDirectives(settings *config.GoModDirectivesSettings) *goanalysis.Linter
- func NewGoPrintfFuncName() *goanalysis.Linter
- func NewGochecknoglobals() *goanalysis.Linter
- func NewGochecknoinits() *goanalysis.Linter
- func NewGocognit(settings *config.GocognitSettings) *goanalysis.Linter
- func NewGoconst(settings *config.GoConstSettings) *goanalysis.Linter
- func NewGocyclo(settings *config.GoCycloSettings) *goanalysis.Linter
- func NewGodot(settings *config.GodotSettings) *goanalysis.Linter
- func NewGodox(settings *config.GodoxSettings) *goanalysis.Linter
- func NewGoerr113() *goanalysis.Linter
- func NewGofmt(settings *config.GoFmtSettings) *goanalysis.Linter
- func NewGofumpt(settings *config.GofumptSettings) *goanalysis.Linter
- func NewGoimports(settings *config.GoImportsSettings) *goanalysis.Linter
- func NewGolint(settings *config.GoLintSettings) *goanalysis.Linter
- func NewGomodguard(settings *config.GoModGuardSettings) *goanalysis.Linter
- func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter
- func NewGosimple(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewGovet(settings *config.GovetSettings) *goanalysis.Linter
- func NewGrouper(settings *config.GrouperSettings) *goanalysis.Linter
- func NewIfshort(settings *config.IfshortSettings) *goanalysis.Linter
- func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter
- func NewIneffassign() *goanalysis.Linter
- func NewInterfaceBloat(settings *config.InterfaceBloatSettings) *goanalysis.Linter
- func NewInterfacer() *goanalysis.Linter
- func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
- func NewLLL(settings *config.LllSettings) *goanalysis.Linter
- func NewLogrLint() *goanalysis.Linter
- func NewMaintIdx(cfg *config.MaintIdxSettings) *goanalysis.Linter
- func NewMakezero(settings *config.MakezeroSettings) *goanalysis.Linter
- func NewMaligned(settings *config.MalignedSettings) *goanalysis.Linter
- func NewMisspell(settings *config.MisspellSettings) *goanalysis.Linter
- func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
- func NewNakedret(settings *config.NakedretSettings) *goanalysis.Linter
- func NewNestif(settings *config.NestifSettings) *goanalysis.Linter
- func NewNilErr() *goanalysis.Linter
- func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
- func NewNoLintLint(settings *config.NoLintLintSettings) *goanalysis.Linter
- func NewNoNamedReturns(settings *config.NoNamedReturnsSettings) *goanalysis.Linter
- func NewNoSnakeCase() *goanalysis.Linter
- func NewNoSprintfHostPort() *goanalysis.Linter
- func NewNoctx() *goanalysis.Linter
- func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter
- func NewPreAlloc(settings *config.PreallocSettings) *goanalysis.Linter
- func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
- func NewPromlinter(settings *config.PromlinterSettings) *goanalysis.Linter
- func NewReassign(settings *config.ReassignSettings) *goanalysis.Linter
- func NewRevive(settings *config.ReviveSettings) *goanalysis.Linter
- func NewRowsErrCheck(settings *config.RowsErrCheckSettings) *goanalysis.Linter
- func NewSQLCloseCheck() *goanalysis.Linter
- func NewScopelint() *goanalysis.Linter
- func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewStructcheck(settings *config.StructCheckSettings) *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(settings *config.UnparamSettings) *goanalysis.Linter
- func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
- func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter
- func NewVarcheck(settings *config.VarCheckSettings) *goanalysis.Linter
- func NewVarnamelen(settings *config.VarnamelenSettings) *goanalysis.Linter
- func NewWSL(settings *config.WSLSettings) *goanalysis.Linter
- func NewWastedAssign() *goanalysis.Linter
- func NewWhitespace(settings *config.WhitespaceSettings) *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 NewAsasalint ¶ added in v1.47.0
func NewAsasalint(setting *config.AsasalintSettings) *goanalysis.Linter
func NewAsciicheck ¶ added in v1.25.1
func NewAsciicheck() *goanalysis.Linter
func NewBiDiChkFuncName ¶ added in v1.43.0
func NewBiDiChkFuncName(cfg *config.BiDiChkSettings) *goanalysis.Linter
func NewBodyclose ¶ added in v1.17.0
func NewBodyclose() *goanalysis.Linter
func NewContainedCtx ¶ added in v1.44.0
func NewContainedCtx() *goanalysis.Linter
func NewContextCheck ¶ added in v1.43.0
func NewContextCheck() *goanalysis.Linter
func NewDeadcode ¶ added in v1.20.0
func NewDeadcode() *goanalysis.Linter
func NewDecorder ¶ added in v1.44.0
func NewDecorder(settings *config.DecorderSettings) *goanalysis.Linter
func NewDepguard ¶ added in v1.20.0
func NewDepguard(settings *config.DepGuardSettings) *goanalysis.Linter
func NewDogsled ¶ added in v1.20.0
func NewDogsled(settings *config.DogsledSettings) *goanalysis.Linter
func NewDupl ¶ added in v1.20.0
func NewDupl(settings *config.DuplSettings) *goanalysis.Linter
func NewDurationCheck ¶ added in v1.37.0
func NewDurationCheck() *goanalysis.Linter
func NewErrChkJSONFuncName ¶ added in v1.44.0
func NewErrChkJSONFuncName(cfg *config.ErrChkJSONSettings) *goanalysis.Linter
func NewErrName ¶ added in v1.42.0
func NewErrName() *goanalysis.Linter
func NewErrcheck ¶ added in v1.20.0
func NewErrcheck(settings *config.ErrcheckSettings) *goanalysis.Linter
func NewErrorLint ¶ added in v1.32.0
func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
func NewExecInQuery ¶ added in v1.46.0
func NewExecInQuery() *goanalysis.Linter
func NewExhaustive ¶ added in v1.28.0
func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
func NewExhaustiveStruct ¶ added in v1.32.0
func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
func NewExhaustruct ¶ added in v1.46.0
func NewExhaustruct(settings *config.ExhaustructSettings) *goanalysis.Linter
func NewExportLoopRef ¶ added in v1.28.0
func NewExportLoopRef() *goanalysis.Linter
func NewForbidigo ¶ added in v1.33.1
func NewForbidigo(settings *config.ForbidigoSettings) *goanalysis.Linter
func NewForceTypeAssert ¶ added in v1.38.0
func NewForceTypeAssert() *goanalysis.Linter
func NewFunlen ¶ added in v1.20.0
func NewFunlen(settings *config.FunlenSettings) *goanalysis.Linter
func NewGci ¶ added in v1.30.0
func NewGci(settings *config.GciSettings) *goanalysis.Linter
func NewGoCritic ¶ added in v1.49.0
func NewGoCritic(settings *config.GoCriticSettings, cfg *config.Config) *goanalysis.Linter
func NewGoHeader ¶ added in v1.28.0
func NewGoHeader(settings *config.GoHeaderSettings) *goanalysis.Linter
func NewGoMND ¶ added in v1.22.0
func NewGoMND(settings *config.GoMndSettings) *goanalysis.Linter
func NewGoModDirectives ¶ added in v1.39.0
func NewGoModDirectives(settings *config.GoModDirectivesSettings) *goanalysis.Linter
NewGoModDirectives returns a new gomoddirectives linter.
func NewGoPrintfFuncName ¶ added in v1.23.0
func NewGoPrintfFuncName() *goanalysis.Linter
func NewGochecknoglobals ¶ added in v1.20.0
func NewGochecknoglobals() *goanalysis.Linter
func NewGochecknoinits ¶ added in v1.20.0
func NewGochecknoinits() *goanalysis.Linter
func NewGocognit ¶ added in v1.20.0
func NewGocognit(settings *config.GocognitSettings) *goanalysis.Linter
func NewGoconst ¶ added in v1.20.0
func NewGoconst(settings *config.GoConstSettings) *goanalysis.Linter
func NewGocyclo ¶ added in v1.20.0
func NewGocyclo(settings *config.GoCycloSettings) *goanalysis.Linter
func NewGodot ¶ added in v1.25.0
func NewGodot(settings *config.GodotSettings) *goanalysis.Linter
func NewGodox ¶ added in v1.20.0
func NewGodox(settings *config.GodoxSettings) *goanalysis.Linter
func NewGoerr113 ¶ added in v1.26.0
func NewGoerr113() *goanalysis.Linter
func NewGofmt ¶ added in v1.20.0
func NewGofmt(settings *config.GoFmtSettings) *goanalysis.Linter
func NewGofumpt ¶ added in v1.28.0
func NewGofumpt(settings *config.GofumptSettings) *goanalysis.Linter
func NewGoimports ¶ added in v1.20.0
func NewGoimports(settings *config.GoImportsSettings) *goanalysis.Linter
func NewGolint ¶ added in v1.20.0
func NewGolint(settings *config.GoLintSettings) *goanalysis.Linter
func NewGomodguard ¶ added in v1.25.0
func NewGomodguard(settings *config.GoModGuardSettings) *goanalysis.Linter
NewGomodguard returns a new Gomodguard linter.
func NewGosec ¶ added in v1.20.0
func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter
func NewGosimple ¶ added in v1.13.1
func NewGosimple(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewGovet ¶ added in v1.16.0
func NewGovet(settings *config.GovetSettings) *goanalysis.Linter
func NewGrouper ¶ added in v1.44.0
func NewGrouper(settings *config.GrouperSettings) *goanalysis.Linter
func NewIfshort ¶ added in v1.36.0
func NewIfshort(settings *config.IfshortSettings) *goanalysis.Linter
func NewImportAs ¶ added in v1.38.0
func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter
func NewIneffassign ¶ added in v1.20.0
func NewIneffassign() *goanalysis.Linter
func NewInterfaceBloat ¶ added in v1.49.0
func NewInterfaceBloat(settings *config.InterfaceBloatSettings) *goanalysis.Linter
func NewInterfacer ¶ added in v1.20.0
func NewInterfacer() *goanalysis.Linter
func NewIreturn ¶ added in v1.43.0
func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
func NewLLL ¶ added in v1.20.0
func NewLLL(settings *config.LllSettings) *goanalysis.Linter
func NewLogrLint ¶ added in v1.49.0
func NewLogrLint() *goanalysis.Linter
func NewMaintIdx ¶ added in v1.44.0
func NewMaintIdx(cfg *config.MaintIdxSettings) *goanalysis.Linter
func NewMakezero ¶ added in v1.33.1
func NewMakezero(settings *config.MakezeroSettings) *goanalysis.Linter
func NewMaligned ¶ added in v1.20.0
func NewMaligned(settings *config.MalignedSettings) *goanalysis.Linter
func NewMisspell ¶ added in v1.17.0
func NewMisspell(settings *config.MisspellSettings) *goanalysis.Linter
func NewNLReturn ¶ added in v1.30.0
func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
func NewNakedret ¶ added in v1.20.0
func NewNakedret(settings *config.NakedretSettings) *goanalysis.Linter
func NewNestif ¶ added in v1.25.0
func NewNestif(settings *config.NestifSettings) *goanalysis.Linter
func NewNilErr ¶ added in v1.38.0
func NewNilErr() *goanalysis.Linter
func NewNilNil ¶ added in v1.43.0
func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
func NewNoLintLint ¶ added in v1.26.0
func NewNoLintLint(settings *config.NoLintLintSettings) *goanalysis.Linter
func NewNoNamedReturns ¶ added in v1.46.0
func NewNoNamedReturns(settings *config.NoNamedReturnsSettings) *goanalysis.Linter
func NewNoSnakeCase ¶ added in v1.47.0
func NewNoSnakeCase() *goanalysis.Linter
func NewNoSprintfHostPort ¶ added in v1.46.0
func NewNoSprintfHostPort() *goanalysis.Linter
func NewNoctx ¶ added in v1.28.0
func NewNoctx() *goanalysis.Linter
func NewParallelTest ¶ added in v1.33.0
func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter
func NewPreAlloc ¶ added in v1.47.0
func NewPreAlloc(settings *config.PreallocSettings) *goanalysis.Linter
func NewPredeclared ¶ added in v1.35.0
func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
func NewPromlinter ¶ added in v1.40.0
func NewPromlinter(settings *config.PromlinterSettings) *goanalysis.Linter
func NewReassign ¶ added in v1.49.0
func NewReassign(settings *config.ReassignSettings) *goanalysis.Linter
func NewRevive ¶ added in v1.37.0
func NewRevive(settings *config.ReviveSettings) *goanalysis.Linter
NewRevive returns a new Revive linter.
func NewRowsErrCheck ¶ added in v1.23.0
func NewRowsErrCheck(settings *config.RowsErrCheckSettings) *goanalysis.Linter
func NewSQLCloseCheck ¶ added in v1.28.0
func NewSQLCloseCheck() *goanalysis.Linter
func NewScopelint ¶ added in v1.20.0
func NewScopelint() *goanalysis.Linter
func NewStaticcheck ¶ added in v1.13.1
func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewStructcheck ¶ added in v1.20.0
func NewStructcheck(settings *config.StructCheckSettings) *goanalysis.Linter
func NewStylecheck ¶ added in v1.13.1
func NewStylecheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewTagliatelle ¶ added in v1.40.0
func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
func NewTenv ¶ added in v1.43.0
func NewTenv(settings *config.TenvSettings) *goanalysis.Linter
func NewTestpackage ¶ added in v1.25.0
func NewTestpackage(cfg *config.TestpackageSettings) *goanalysis.Linter
func NewThelper ¶ added in v1.33.1
func NewThelper(cfg *config.ThelperSettings) *goanalysis.Linter
func NewTparallel ¶ added in v1.32.0
func NewTparallel() *goanalysis.Linter
func NewTypecheck ¶ added in v1.20.0
func NewTypecheck() *goanalysis.Linter
func NewUnconvert ¶ added in v1.20.0
func NewUnconvert() *goanalysis.Linter
func NewUnparam ¶ added in v1.20.0
func NewUnparam(settings *config.UnparamSettings) *goanalysis.Linter
func NewUnused ¶ added in v1.13.1
func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewUseStdlibVars ¶ added in v1.48.0
func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter
func NewVarcheck ¶ added in v1.20.0
func NewVarcheck(settings *config.VarCheckSettings) *goanalysis.Linter
func NewVarnamelen ¶ added in v1.43.0
func NewVarnamelen(settings *config.VarnamelenSettings) *goanalysis.Linter
func NewWSL ¶ added in v1.20.0
func NewWSL(settings *config.WSLSettings) *goanalysis.Linter
NewWSL returns a new WSL linter.
func NewWastedAssign ¶ added in v1.38.0
func NewWastedAssign() *goanalysis.Linter
func NewWhitespace ¶ added in v1.20.0
func NewWhitespace(settings *config.WhitespaceSettings) *goanalysis.Linter
func NewWrapcheck ¶ added in v1.32.0
func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter
Types ¶
type Change ¶ added in v1.15.0
type Change struct { LineRange result.Range Replacement result.Replacement }
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 UnusedSettings ¶ added in v1.40.0
type UnusedSettings struct {
GoVersion string
}
Source Files ¶
- asasalint.go
- asciicheck.go
- bidichk.go
- bodyclose.go
- commons.go
- containedctx.go
- contextcheck.go
- cyclop.go
- deadcode.go
- decorder.go
- depguard.go
- dogsled.go
- dupl.go
- durationcheck.go
- errcheck.go
- errchkjson.go
- errname.go
- errorlint.go
- execinquery.go
- exhaustive.go
- exhaustivestruct.go
- exhaustruct.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
- grouper.go
- ifshort.go
- importas.go
- ineffassign.go
- interfacebloat.go
- interfacer.go
- ireturn.go
- lll.go
- logrlint.go
- maintidx.go
- makezero.go
- maligned.go
- misspell.go
- nakedret.go
- nestif.go
- nilerr.go
- nilnil.go
- nlreturn.go
- noctx.go
- nolintlint.go
- nonamedreturns.go
- nosnakecase.go
- nosprintfhostport.go
- paralleltest.go
- prealloc.go
- predeclared.go
- promlinter.go
- reassign.go
- revive.go
- rowserrcheck.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
- usestdlibvars.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.