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 NewDupWord(setting *config.DupWordSettings) *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 NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter
- func NewGoCheckCompilerDirectives() *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 NewGosmopolitan(s *config.GosmopolitanSettings) *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 NewLoggerCheck(settings *config.LoggerCheckSettings) *goanalysis.Linter
- func NewMaintIdx(cfg *config.MaintIdxSettings) *goanalysis.Linter
- func NewMakezero(settings *config.MakezeroSettings) *goanalysis.Linter
- func NewMaligned(settings *config.MalignedSettings) *goanalysis.Linter
- func NewMirror() *goanalysis.Linter
- func NewMisspell(settings *config.MisspellSettings) *goanalysis.Linter
- func NewMustTag(setting *config.MustTagSettings) *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 NewNilPointerReferenceCheck() *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 NewTagAlign(settings *config.TagAlignSettings) *goanalysis.Linter
- func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
- func NewTenv(settings *config.TenvSettings) *goanalysis.Linter
- func NewTestableexamples() *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
- func NewZerologLint() *goanalysis.Linter
- type Change
- type Node
- type UnusedSettings
Constants ¶
View Source
const NoLintLintName = "nolintlint"
Variables ¶
This section is empty.
Functions ¶
func NewAsasalint ¶
func NewAsasalint(setting *config.AsasalintSettings) *goanalysis.Linter
func NewAsciicheck ¶
func NewAsciicheck() *goanalysis.Linter
func NewBiDiChkFuncName ¶
func NewBiDiChkFuncName(cfg *config.BiDiChkSettings) *goanalysis.Linter
func NewBodyclose ¶
func NewBodyclose() *goanalysis.Linter
func NewContainedCtx ¶
func NewContainedCtx() *goanalysis.Linter
func NewContextCheck ¶
func NewContextCheck() *goanalysis.Linter
func NewDeadcode ¶
func NewDeadcode() *goanalysis.Linter
func NewDecorder ¶
func NewDecorder(settings *config.DecorderSettings) *goanalysis.Linter
func NewDepguard ¶
func NewDepguard(settings *config.DepGuardSettings) *goanalysis.Linter
func NewDogsled ¶
func NewDogsled(settings *config.DogsledSettings) *goanalysis.Linter
func NewDupWord ¶
func NewDupWord(setting *config.DupWordSettings) *goanalysis.Linter
func NewDupl ¶
func NewDupl(settings *config.DuplSettings) *goanalysis.Linter
func NewDurationCheck ¶
func NewDurationCheck() *goanalysis.Linter
func NewErrChkJSONFuncName ¶
func NewErrChkJSONFuncName(cfg *config.ErrChkJSONSettings) *goanalysis.Linter
func NewErrName ¶
func NewErrName() *goanalysis.Linter
func NewErrcheck ¶
func NewErrcheck(settings *config.ErrcheckSettings) *goanalysis.Linter
func NewErrorLint ¶
func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
func NewExecInQuery ¶
func NewExecInQuery() *goanalysis.Linter
func NewExhaustive ¶
func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
func NewExhaustiveStruct ¶
func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
func NewExhaustruct ¶
func NewExhaustruct(settings *config.ExhaustructSettings) *goanalysis.Linter
func NewExportLoopRef ¶
func NewExportLoopRef() *goanalysis.Linter
func NewForbidigo ¶
func NewForbidigo(settings *config.ForbidigoSettings) *goanalysis.Linter
func NewForceTypeAssert ¶
func NewForceTypeAssert() *goanalysis.Linter
func NewFunlen ¶
func NewFunlen(settings *config.FunlenSettings) *goanalysis.Linter
func NewGci ¶
func NewGci(settings *config.GciSettings) *goanalysis.Linter
func NewGinkgoLinter ¶
func NewGinkgoLinter(cfg *config.GinkgoLinterSettings) *goanalysis.Linter
func NewGoCheckCompilerDirectives ¶
func NewGoCheckCompilerDirectives() *goanalysis.Linter
func NewGoCritic ¶
func NewGoCritic(settings *config.GoCriticSettings, cfg *config.Config) *goanalysis.Linter
func NewGoHeader ¶
func NewGoHeader(settings *config.GoHeaderSettings) *goanalysis.Linter
func NewGoMND ¶
func NewGoMND(settings *config.GoMndSettings) *goanalysis.Linter
func NewGoModDirectives ¶
func NewGoModDirectives(settings *config.GoModDirectivesSettings) *goanalysis.Linter
NewGoModDirectives returns a new gomoddirectives linter.
func NewGoPrintfFuncName ¶
func NewGoPrintfFuncName() *goanalysis.Linter
func NewGochecknoglobals ¶
func NewGochecknoglobals() *goanalysis.Linter
func NewGochecknoinits ¶
func NewGochecknoinits() *goanalysis.Linter
func NewGocognit ¶
func NewGocognit(settings *config.GocognitSettings) *goanalysis.Linter
func NewGoconst ¶
func NewGoconst(settings *config.GoConstSettings) *goanalysis.Linter
func NewGocyclo ¶
func NewGocyclo(settings *config.GoCycloSettings) *goanalysis.Linter
func NewGodot ¶
func NewGodot(settings *config.GodotSettings) *goanalysis.Linter
func NewGodox ¶
func NewGodox(settings *config.GodoxSettings) *goanalysis.Linter
func NewGoerr113 ¶
func NewGoerr113() *goanalysis.Linter
func NewGofmt ¶
func NewGofmt(settings *config.GoFmtSettings) *goanalysis.Linter
func NewGofumpt ¶
func NewGofumpt(settings *config.GofumptSettings) *goanalysis.Linter
func NewGoimports ¶
func NewGoimports(settings *config.GoImportsSettings) *goanalysis.Linter
func NewGolint ¶
func NewGolint(settings *config.GoLintSettings) *goanalysis.Linter
func NewGomodguard ¶
func NewGomodguard(settings *config.GoModGuardSettings) *goanalysis.Linter
NewGomodguard returns a new Gomodguard linter.
func NewGosec ¶
func NewGosec(settings *config.GoSecSettings) *goanalysis.Linter
func NewGosimple ¶
func NewGosimple(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewGosmopolitan ¶
func NewGosmopolitan(s *config.GosmopolitanSettings) *goanalysis.Linter
func NewGovet ¶
func NewGovet(settings *config.GovetSettings) *goanalysis.Linter
func NewGrouper ¶
func NewGrouper(settings *config.GrouperSettings) *goanalysis.Linter
func NewIfshort ¶
func NewIfshort(settings *config.IfshortSettings) *goanalysis.Linter
func NewImportAs ¶
func NewImportAs(settings *config.ImportAsSettings) *goanalysis.Linter
func NewIneffassign ¶
func NewIneffassign() *goanalysis.Linter
func NewInterfaceBloat ¶
func NewInterfaceBloat(settings *config.InterfaceBloatSettings) *goanalysis.Linter
func NewInterfacer ¶
func NewInterfacer() *goanalysis.Linter
func NewIreturn ¶
func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
func NewLLL ¶
func NewLLL(settings *config.LllSettings) *goanalysis.Linter
func NewLoggerCheck ¶
func NewLoggerCheck(settings *config.LoggerCheckSettings) *goanalysis.Linter
func NewMaintIdx ¶
func NewMaintIdx(cfg *config.MaintIdxSettings) *goanalysis.Linter
func NewMakezero ¶
func NewMakezero(settings *config.MakezeroSettings) *goanalysis.Linter
func NewMaligned ¶
func NewMaligned(settings *config.MalignedSettings) *goanalysis.Linter
func NewMirror ¶
func NewMirror() *goanalysis.Linter
func NewMisspell ¶
func NewMisspell(settings *config.MisspellSettings) *goanalysis.Linter
func NewMustTag ¶
func NewMustTag(setting *config.MustTagSettings) *goanalysis.Linter
func NewNLReturn ¶
func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
func NewNakedret ¶
func NewNakedret(settings *config.NakedretSettings) *goanalysis.Linter
func NewNestif ¶
func NewNestif(settings *config.NestifSettings) *goanalysis.Linter
func NewNilErr ¶
func NewNilErr() *goanalysis.Linter
func NewNilNil ¶
func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
func NewNilPointerReferenceCheck ¶
func NewNilPointerReferenceCheck() *goanalysis.Linter
func NewNoLintLint ¶
func NewNoLintLint(settings *config.NoLintLintSettings) *goanalysis.Linter
func NewNoNamedReturns ¶
func NewNoNamedReturns(settings *config.NoNamedReturnsSettings) *goanalysis.Linter
func NewNoSnakeCase ¶
func NewNoSnakeCase() *goanalysis.Linter
func NewNoSprintfHostPort ¶
func NewNoSprintfHostPort() *goanalysis.Linter
func NewNoctx ¶
func NewNoctx() *goanalysis.Linter
func NewParallelTest ¶
func NewParallelTest(settings *config.ParallelTestSettings) *goanalysis.Linter
func NewPreAlloc ¶
func NewPreAlloc(settings *config.PreallocSettings) *goanalysis.Linter
func NewPredeclared ¶
func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
func NewPromlinter ¶
func NewPromlinter(settings *config.PromlinterSettings) *goanalysis.Linter
func NewReassign ¶
func NewReassign(settings *config.ReassignSettings) *goanalysis.Linter
func NewRevive ¶
func NewRevive(settings *config.ReviveSettings) *goanalysis.Linter
NewRevive returns a new Revive linter.
func NewRowsErrCheck ¶
func NewRowsErrCheck(settings *config.RowsErrCheckSettings) *goanalysis.Linter
func NewSQLCloseCheck ¶
func NewSQLCloseCheck() *goanalysis.Linter
func NewScopelint ¶
func NewScopelint() *goanalysis.Linter
func NewStaticcheck ¶
func NewStaticcheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewStructcheck ¶
func NewStructcheck(settings *config.StructCheckSettings) *goanalysis.Linter
func NewStylecheck ¶
func NewStylecheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewTagAlign ¶
func NewTagAlign(settings *config.TagAlignSettings) *goanalysis.Linter
func NewTagliatelle ¶
func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
func NewTenv ¶
func NewTenv(settings *config.TenvSettings) *goanalysis.Linter
func NewTestableexamples ¶
func NewTestableexamples() *goanalysis.Linter
func NewTestpackage ¶
func NewTestpackage(cfg *config.TestpackageSettings) *goanalysis.Linter
func NewThelper ¶
func NewThelper(cfg *config.ThelperSettings) *goanalysis.Linter
func NewTparallel ¶
func NewTparallel() *goanalysis.Linter
func NewTypecheck ¶
func NewTypecheck() *goanalysis.Linter
func NewUnconvert ¶
func NewUnconvert() *goanalysis.Linter
func NewUnparam ¶
func NewUnparam(settings *config.UnparamSettings) *goanalysis.Linter
func NewUnused ¶
func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewUseStdlibVars ¶
func NewUseStdlibVars(cfg *config.UseStdlibVarsSettings) *goanalysis.Linter
func NewVarcheck ¶
func NewVarcheck(settings *config.VarCheckSettings) *goanalysis.Linter
func NewVarnamelen ¶
func NewVarnamelen(settings *config.VarnamelenSettings) *goanalysis.Linter
func NewWSL ¶
func NewWSL(settings *config.WSLSettings) *goanalysis.Linter
NewWSL returns a new WSL linter.
func NewWastedAssign ¶
func NewWastedAssign() *goanalysis.Linter
func NewWhitespace ¶
func NewWhitespace(settings *config.WhitespaceSettings) *goanalysis.Linter
func NewWrapcheck ¶
func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter
func NewZerologLint ¶
func NewZerologLint() *goanalysis.Linter
Types ¶
type Node ¶
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 ¶
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
- dupword.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
- ginkgolinter.go
- gocheckcompilerdirectives.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
- gosmopolitan.go
- govet.go
- grouper.go
- ifshort.go
- importas.go
- ineffassign.go
- interfacebloat.go
- interfacer.go
- ireturn.go
- lll.go
- loggercheck.go
- maintidx.go
- makezero.go
- maligned.go
- mirror.go
- misspell.go
- musttag.go
- nakedret.go
- nestif.go
- nilerr.go
- nilnil.go
- nlreturn.go
- noctx.go
- nolintlint.go
- nonamedreturns.go
- nosnakecase.go
- nosprintfhostport.go
- npecheck.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
- tagalign.go
- tagliatelle.go
- tenv.go
- testableexamples.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
- zerologlint.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.