analyzers

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 102 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoVetName        = "govet"
	GoVetExcludeName = "exclude"
	GoVetExtraName   = "extra"
)

Variables

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL