Documentation

Index

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 NewCyclop

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

func NewGoMND(cfg *config.Config) *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() *goanalysis.Linter

      func NewGosimple

      func NewGosimple() *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 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() *goanalysis.Linter

      func NewNakedret

      func NewNakedret() *goanalysis.Linter

      func NewNestif

      func NewNestif() *goanalysis.Linter

      func NewNilErr

      func NewNilErr() *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 NewRevive

      func NewRevive(cfg *config.ReviveSettings) *goanalysis.Linter

        NewNewRevive 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() *goanalysis.Linter

        func NewStructcheck

        func NewStructcheck() *goanalysis.Linter

        func NewStylecheck

        func NewStylecheck() *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() *goanalysis.Linter

        func NewVarcheck

        func NewVarcheck() *goanalysis.Linter

        func NewWSL

        func NewWSL() *goanalysis.Linter

          NewWSL returns a new WSL linter.

          func NewWastedAssign

          func NewWastedAssign() *goanalysis.Linter

          func NewWhitespace

          func NewWhitespace() *goanalysis.Linter

          func NewWrapcheck

          func NewWrapcheck() *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). nolint:gocyclo,gocritic

              Directories

              Path Synopsis
              Package goanalysis defines the implementation of the checker commands.
              Package goanalysis defines the implementation of the checker commands.
              nolintlint provides a linter to ensure that all //nolint directives are followed by explanations
              nolintlint provides a linter to ensure that all //nolint directives are followed by explanations