golinters

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: GPL-3.0 Imports: 191 Imported by: 0

Documentation

Index

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 NewCyclop

func NewCyclop(settings *config.Cyclop) *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 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 Change

type Change struct {
	LineRange   result.Range
	Replacement result.Replacement
}

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.

func (*Node) Visit

func (f *Node) Visit(node ast.Node) ast.Visitor

Visit method is invoked for each node encountered by Walk. If the result visitor w is not nil, Walk visits each of the children of node with the visitor w, followed by a call of w.Visit(nil).

type UnusedSettings

type UnusedSettings struct {
	GoVersion string
}

Source Files

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

Jump to

Keyboard shortcuts

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