Documentation ¶
Index ¶
Constants ¶
View Source
const ( GoVetName = "govet" GoVetExcludeName = "exclude" GoVetExtraName = "extra" )
Variables ¶
View Source
var ( // GoVet the list of official go analyzers (passes) // https://pkg.go.dev/golang.org/x/tools/go/analysis/passes GoVet = []*analysis.Analyzer{ dummyGoVet, asmdecl.Analyzer, assign.Analyzer, atomic.Analyzer, bools.Analyzer, buildtag.Analyzer, cgocall.Analyzer, composite.Analyzer, copylock.Analyzer, httpresponse.Analyzer, loopclosure.Analyzer, lostcancel.Analyzer, nilfunc.Analyzer, printf.Analyzer, shift.Analyzer, stdmethods.Analyzer, structtag.Analyzer, testinggoroutine.Analyzer, tests.Analyzer, unmarshal.Analyzer, unreachable.Analyzer, unsafeptr.Analyzer, unusedresult.Analyzer, } GoVetExtra = []*analysis.Analyzer{ atomicalign.Analyzer, deepequalerrors.Analyzer, directive.Analyzer, errorsas.Analyzer, fieldalignment.Analyzer, framepointer.Analyzer, ifaceassert.Analyzer, nilness.Analyzer, reflectvaluecompare.Analyzer, shadow.Analyzer, sigchanyzer.Analyzer, sortslice.Analyzer, stringintconv.Analyzer, timeformat.Analyzer, unusedwrite.Analyzer, usesgenerics.Analyzer, } )
View Source
var Analyzers []*analysis.Analyzer
Analyzers is the list of all supported analyzers, including govet and the external
View Source
var External = []*analysis.Analyzer{ asciicheck.NewAnalyzer(), bidichk.NewAnalyzer(), bodyclose.Analyzer, checkcompilerdirectives.Analyzer(), checknoglobals.Analyzer(), containedctx.Analyzer, contextcheck.NewAnalyzer(contextcheck.Configuration{}), critic.Analyzer, cyclop.NewAnalyzer(), decorder.Analyzer, dupword.NewAnalyzer(), durationcheck.Analyzer, err113.NewAnalyzer(), errcheck.Analyzer, errchkjson.NewAnalyzer(), errname.New(), errorlint.NewAnalyzer(), execinquery.Analyzer, exhaustive.Analyzer, exportloopref.Analyzer, forbidigo.NewAnalyzer(), forcetypeassert.Analyzer, gci.Analyzer, ginkgolinter.Analyzer, gocognit.Analyzer, gofumpt.Analyzer, goprintffuncname.Analyzer, gosmopolitan.DefaultAnalyzer, grouper.New(), ineffassign.Analyzer, interfacebloat.New(), ireturn.NewAnalyzer(), loggercheck.NewAnalyzer(), magicnumbers.Analyzer, maintidx.Analyzer, makezero.NewAnalyzer(), mirror.NewAnalyzer(), musttag.New(), nilerr.Analyzer, nilnil.New(), nlreturn.NewAnalyzer(), noctx.Analyzer, nonamedreturns.Analyzer, nosprintfhostport.Analyzer, paralleltest.NewAnalyzer(), predeclared.Analyzer, reassign.NewAnalyzer(), rowserr.NewAnalyzer(), sqlclosecheck.NewAnalyzer(), tagalign.NewAnalyzer(), tenv.Analyzer, testableexamples.NewAnalyzer(), testpackage.NewAnalyzer(), thelper.NewAnalyzer(), tparallel.Analyzer, unparam.Analyzer, unused.Analyzer, usestdlibvars.New(), varnamelen.NewAnalyzer(), wastedassign.Analyzer, zerologlint.Analyzer, utils.MustNew(func() (*analysis.Analyzer, error) { return exhaustruct.NewAnalyzer(nil, nil) }), }
External is the list of all external analyzers (linters)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package gci integrates the [gci](https://github.com/daixiang0/gci) linter wrapping gci.Analyzer in order to provide the Suggested Fixes A lot of code has been copied from the gci/pkg/analyzer package.
|
Package gci integrates the [gci](https://github.com/daixiang0/gci) linter wrapping gci.Analyzer in order to provide the Suggested Fixes A lot of code has been copied from the gci/pkg/analyzer package. |
Package unparam integrates the [unparam](https://github.com/mvdan/unparam) linter
|
Package unparam integrates the [unparam](https://github.com/mvdan/unparam) linter |
Package unused integrates the [unused](https://github.com/dominikh/go-tools/tree/master/unused) linter
|
Package unused integrates the [unused](https://github.com/dominikh/go-tools/tree/master/unused) linter |
Click to show internal directories.
Click to hide internal directories.