golinters

package
Version: v1.26.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: GPL-3.0 Imports: 103 Imported by: 0

Documentation

Overview

nolint:dupl

nolint:dupl

Index

Constants

View Source
const NolintlintName = "nolintlint"

Variables

This section is empty.

Functions

func NewAsciicheck added in v1.26.1

func NewAsciicheck() *goanalysis.Linter

func NewBodyclose added in v1.26.1

func NewBodyclose() *goanalysis.Linter

func NewDeadcode added in v1.26.1

func NewDeadcode() *goanalysis.Linter

func NewDepguard added in v1.26.1

func NewDepguard() *goanalysis.Linter

func NewDogsled added in v1.26.1

func NewDogsled() *goanalysis.Linter

func NewDupl added in v1.26.1

func NewDupl() *goanalysis.Linter

func NewErrcheck added in v1.26.1

func NewErrcheck() *goanalysis.Linter

func NewFunlen added in v1.26.1

func NewFunlen() *goanalysis.Linter

func NewGoMND added in v1.26.1

func NewGoMND(cfg *config.Config) *goanalysis.Linter

func NewGoPrintfFuncName added in v1.26.1

func NewGoPrintfFuncName() *goanalysis.Linter

func NewGochecknoglobals added in v1.26.1

func NewGochecknoglobals() *goanalysis.Linter

func NewGochecknoinits added in v1.26.1

func NewGochecknoinits() *goanalysis.Linter

func NewGocognit added in v1.26.1

func NewGocognit() *goanalysis.Linter

func NewGoconst added in v1.26.1

func NewGoconst() *goanalysis.Linter

func NewGocritic added in v1.26.1

func NewGocritic() *goanalysis.Linter

func NewGocyclo added in v1.26.1

func NewGocyclo() *goanalysis.Linter

func NewGodot added in v1.26.1

func NewGodot() *goanalysis.Linter

func NewGodox added in v1.26.1

func NewGodox() *goanalysis.Linter

func NewGoerr113 added in v1.26.1

func NewGoerr113() *goanalysis.Linter

func NewGofmt added in v1.26.1

func NewGofmt() *goanalysis.Linter

func NewGoimports added in v1.26.1

func NewGoimports() *goanalysis.Linter

func NewGolint added in v1.26.1

func NewGolint() *goanalysis.Linter

func NewGomodguard added in v1.26.1

func NewGomodguard() *goanalysis.Linter

NewGomodguard returns a new Gomodguard linter.

func NewGosec added in v1.26.1

func NewGosec() *goanalysis.Linter

func NewGosimple added in v1.26.1

func NewGosimple() *goanalysis.Linter

func NewGovet added in v1.26.1

func NewGovet(cfg *config.GovetSettings) *goanalysis.Linter

func NewIneffassign added in v1.26.1

func NewIneffassign() *goanalysis.Linter

func NewInterfacer added in v1.26.1

func NewInterfacer() *goanalysis.Linter

func NewLLL added in v1.26.1

func NewLLL() *goanalysis.Linter

func NewMaligned added in v1.26.1

func NewMaligned() *goanalysis.Linter

func NewMisspell added in v1.26.1

func NewMisspell() *goanalysis.Linter

func NewNakedret added in v1.26.1

func NewNakedret() *goanalysis.Linter

func NewNestif added in v1.26.1

func NewNestif() *goanalysis.Linter

func NewNoLintLint added in v1.26.1

func NewNoLintLint() *goanalysis.Linter

func NewPrealloc added in v1.26.1

func NewPrealloc() *goanalysis.Linter

func NewRowsErrCheck added in v1.26.1

func NewRowsErrCheck() *goanalysis.Linter

func NewScopelint added in v1.26.1

func NewScopelint() *goanalysis.Linter

func NewStaticcheck added in v1.26.1

func NewStaticcheck() *goanalysis.Linter

func NewStructcheck added in v1.26.1

func NewStructcheck() *goanalysis.Linter

func NewStylecheck added in v1.26.1

func NewStylecheck() *goanalysis.Linter

func NewTestpackage added in v1.26.1

func NewTestpackage(cfg *config.TestpackageSettings) *goanalysis.Linter

func NewTypecheck added in v1.26.1

func NewTypecheck() *goanalysis.Linter

func NewUnconvert added in v1.26.1

func NewUnconvert() *goanalysis.Linter

func NewUnparam added in v1.26.1

func NewUnparam() *goanalysis.Linter

func NewUnused added in v1.26.1

func NewUnused() *goanalysis.Linter

func NewVarcheck added in v1.26.1

func NewVarcheck() *goanalysis.Linter

func NewWSL added in v1.26.1

func NewWSL() *goanalysis.Linter

NewWSL returns a new WSL linter.

func NewWhitespace added in v1.26.1

func NewWhitespace() *goanalysis.Linter

Types

type Change added in v1.26.1

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

type Node added in v1.26.1

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 added in v1.26.1

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).

Directories

Path Synopsis
Package checker defines the implementation of the checker commands.
Package checker 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

Jump to

Keyboard shortcuts

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