Documentation
¶
Index ¶
- Constants
- func NewAsciicheck() *goanalysis.Linter
- func NewBodyclose() *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 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 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 ¶
func NewAsciicheck() *goanalysis.Linter
func NewBodyclose ¶
func NewBodyclose() *goanalysis.Linter
func NewDeadcode ¶
func NewDeadcode() *goanalysis.Linter
func NewDepguard ¶
func NewDepguard() *goanalysis.Linter
func NewDogsled ¶
func NewDogsled() *goanalysis.Linter
func NewDupl ¶
func NewDupl() *goanalysis.Linter
func NewDurationCheck ¶
func NewDurationCheck() *goanalysis.Linter
func NewErrName ¶
func NewErrName() *goanalysis.Linter
func NewErrcheck ¶
func NewErrcheck() *goanalysis.Linter
func NewErrorLint ¶
func NewErrorLint(cfg *config.ErrorLintSettings) *goanalysis.Linter
func NewExhaustive ¶
func NewExhaustive(settings *config.ExhaustiveSettings) *goanalysis.Linter
func NewExhaustiveStruct ¶
func NewExhaustiveStruct(settings *config.ExhaustiveStructSettings) *goanalysis.Linter
func NewExportLoopRef ¶
func NewExportLoopRef() *goanalysis.Linter
func NewForbidigo ¶
func NewForbidigo() *goanalysis.Linter
func NewForceTypeAssert ¶
func NewForceTypeAssert() *goanalysis.Linter
func NewFunlen ¶
func NewFunlen() *goanalysis.Linter
func NewGci ¶
func NewGci() *goanalysis.Linter
func NewGoHeader ¶
func NewGoHeader() *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() *goanalysis.Linter
func NewGoconst ¶
func NewGoconst() *goanalysis.Linter
func NewGocritic ¶
func NewGocritic() *goanalysis.Linter
func NewGocyclo ¶
func NewGocyclo() *goanalysis.Linter
func NewGodot ¶
func NewGodot() *goanalysis.Linter
func NewGodox ¶
func NewGodox() *goanalysis.Linter
func NewGoerr113 ¶
func NewGoerr113() *goanalysis.Linter
func NewGofmt ¶
func NewGofmt() *goanalysis.Linter
func NewGofumpt ¶
func NewGofumpt() *goanalysis.Linter
func NewGoimports ¶
func NewGoimports() *goanalysis.Linter
func NewGolint ¶
func NewGolint() *goanalysis.Linter
func NewGomodguard ¶
func NewGomodguard() *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 NewGovet ¶
func NewGovet(cfg *config.GovetSettings) *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 NewInterfacer ¶
func NewInterfacer() *goanalysis.Linter
func NewIreturn ¶
func NewIreturn(settings *config.IreturnSettings) *goanalysis.Linter
func NewLLL ¶
func NewLLL() *goanalysis.Linter
func NewMakezero ¶
func NewMakezero() *goanalysis.Linter
func NewMaligned ¶
func NewMaligned() *goanalysis.Linter
func NewMisspell ¶
func NewMisspell() *goanalysis.Linter
func NewNLReturn ¶
func NewNLReturn(settings *config.NlreturnSettings) *goanalysis.Linter
func NewNakedret ¶
func NewNakedret() *goanalysis.Linter
func NewNestif ¶
func NewNestif() *goanalysis.Linter
func NewNilErr ¶
func NewNilErr() *goanalysis.Linter
func NewNilNil ¶
func NewNilNil(cfg *config.NilNilSettings) *goanalysis.Linter
func NewNoLintLint ¶
func NewNoLintLint() *goanalysis.Linter
func NewNoctx ¶
func NewNoctx() *goanalysis.Linter
func NewParallelTest ¶
func NewParallelTest() *goanalysis.Linter
func NewPrealloc ¶
func NewPrealloc() *goanalysis.Linter
func NewPredeclared ¶
func NewPredeclared(settings *config.PredeclaredSettings) *goanalysis.Linter
func NewPromlinter ¶
func NewPromlinter() *goanalysis.Linter
func NewRevive ¶
func NewRevive(cfg *config.ReviveSettings) *goanalysis.Linter
NewRevive returns a new Revive linter.
func NewRowsErrCheck ¶
func NewRowsErrCheck() *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() *goanalysis.Linter
func NewStylecheck ¶
func NewStylecheck(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewTagliatelle ¶
func NewTagliatelle(settings *config.TagliatelleSettings) *goanalysis.Linter
func NewTenv ¶
func NewTenv(settings *config.TenvSettings) *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() *goanalysis.Linter
func NewUnused ¶
func NewUnused(settings *config.StaticCheckSettings) *goanalysis.Linter
func NewVarcheck ¶
func NewVarcheck() *goanalysis.Linter
func NewWastedAssign ¶
func NewWastedAssign() *goanalysis.Linter
func NewWhitespace ¶
func NewWhitespace() *goanalysis.Linter
func NewWrapcheck ¶
func NewWrapcheck(settings *config.WrapcheckSettings) *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
¶
- asciicheck.go
- bodyclose.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
- 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
- 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.