golinters

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: GPL-3.0 Imports: 87 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MegacheckParentName      = "megacheck"
	MegacheckStaticcheckName = "staticcheck"
	MegacheckUnusedName      = "unused"
	MegacheckGosimpleName    = "gosimple"
	MegacheckStylecheckName  = "stylecheck"
)

Variables

This section is empty.

Functions

func NewBodyclose added in v1.17.2

func NewBodyclose() *goanalysis.Linter

func NewGovet added in v1.17.2

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

Types

type Change added in v1.17.2

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

type Deadcode

type Deadcode struct{}

func (Deadcode) Desc

func (Deadcode) Desc() string

func (Deadcode) Name

func (Deadcode) Name() string

func (Deadcode) Run

func (d Deadcode) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Depguard added in v1.4.1

type Depguard struct{}

func (Depguard) Desc added in v1.4.1

func (Depguard) Desc() string

func (Depguard) Name added in v1.4.1

func (Depguard) Name() string

func (Depguard) Run added in v1.4.1

func (d Depguard) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Dupl

type Dupl struct{}

func (Dupl) Desc

func (Dupl) Desc() string

func (Dupl) Name

func (Dupl) Name() string

func (Dupl) Run

func (d Dupl) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Errcheck

type Errcheck struct{}

func (Errcheck) Desc

func (Errcheck) Desc() string

func (Errcheck) Name

func (Errcheck) Name() string

func (Errcheck) Run

func (e Errcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gochecknoglobals added in v1.17.2

type Gochecknoglobals struct{}

func (Gochecknoglobals) Desc added in v1.17.2

func (Gochecknoglobals) Desc() string

func (Gochecknoglobals) Name added in v1.17.2

func (Gochecknoglobals) Name() string

func (Gochecknoglobals) Run added in v1.17.2

func (lint Gochecknoglobals) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gochecknoinits added in v1.17.2

type Gochecknoinits struct{}

func (Gochecknoinits) Desc added in v1.17.2

func (Gochecknoinits) Desc() string

func (Gochecknoinits) Name added in v1.17.2

func (Gochecknoinits) Name() string

func (Gochecknoinits) Run added in v1.17.2

func (lint Gochecknoinits) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Goconst

type Goconst struct{}

func (Goconst) Desc

func (Goconst) Desc() string

func (Goconst) Name

func (Goconst) Name() string

func (Goconst) Run

func (lint Goconst) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gocritic added in v1.17.2

type Gocritic struct{}

func (Gocritic) Desc added in v1.17.2

func (Gocritic) Desc() string

func (Gocritic) Name added in v1.17.2

func (Gocritic) Name() string

func (Gocritic) Run added in v1.17.2

func (lint Gocritic) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gocyclo

type Gocyclo struct{}

func (Gocyclo) Desc

func (Gocyclo) Desc() string

func (Gocyclo) Name

func (Gocyclo) Name() string

func (Gocyclo) Run

func (g Gocyclo) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gofmt

type Gofmt struct {
	UseGoimports bool
}

func (Gofmt) Desc

func (g Gofmt) Desc() string

func (Gofmt) Name

func (g Gofmt) Name() string

func (Gofmt) Run

func (g Gofmt) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Golint

type Golint struct{}

func (Golint) Desc

func (Golint) Desc() string

func (Golint) Name

func (Golint) Name() string

func (Golint) Run

func (g Golint) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gosec added in v1.17.2

type Gosec struct{}

func (Gosec) Desc added in v1.17.2

func (Gosec) Desc() string

func (Gosec) Name added in v1.17.2

func (Gosec) Name() string

func (Gosec) Run added in v1.17.2

func (lint Gosec) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Gosimple added in v1.17.2

type Gosimple struct {
	// contains filtered or unexported fields
}

func NewGosimple added in v1.17.2

func NewGosimple() *Gosimple

func (Gosimple) Desc added in v1.17.2

func (Gosimple) Desc() string

func (Gosimple) Name added in v1.17.2

func (Gosimple) Name() string

func (Gosimple) Run added in v1.17.2

func (m Gosimple) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Ineffassign

type Ineffassign struct{}

func (Ineffassign) Desc

func (Ineffassign) Desc() string

func (Ineffassign) Name

func (Ineffassign) Name() string

func (Ineffassign) Run

func (lint Ineffassign) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Interfacer

type Interfacer struct{}

func (Interfacer) Desc

func (Interfacer) Desc() string

func (Interfacer) Name

func (Interfacer) Name() string

func (Interfacer) Run

func (lint Interfacer) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Lll added in v1.8.1

type Lll struct{}

func (Lll) Desc added in v1.8.1

func (Lll) Desc() string

func (Lll) Name added in v1.8.1

func (Lll) Name() string

func (Lll) Run added in v1.8.1

func (lint Lll) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Maligned

type Maligned struct{}

func (Maligned) Desc

func (Maligned) Desc() string

func (Maligned) Name

func (Maligned) Name() string

func (Maligned) Run

func (m Maligned) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type MegacheckMetalinter added in v1.17.2

type MegacheckMetalinter struct{}

func (MegacheckMetalinter) AllChildLinterNames added in v1.17.2

func (m MegacheckMetalinter) AllChildLinterNames() []string

func (MegacheckMetalinter) BuildLinterConfig added in v1.17.2

func (MegacheckMetalinter) BuildLinterConfig(enabledChildren []string) (*linter.Config, error)

func (MegacheckMetalinter) DefaultChildLinterNames added in v1.17.2

func (MegacheckMetalinter) DefaultChildLinterNames() []string

func (MegacheckMetalinter) Name added in v1.17.2

func (MegacheckMetalinter) Name() string

type Misspell added in v1.8.1

type Misspell struct{}

func NewMisspell added in v1.17.2

func NewMisspell() *Misspell

func (Misspell) Desc added in v1.8.1

func (Misspell) Desc() string

func (Misspell) Name added in v1.8.1

func (Misspell) Name() string

func (Misspell) Run added in v1.8.1

func (lint Misspell) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Nakedret added in v1.9.1

type Nakedret struct{}

func (Nakedret) Desc added in v1.9.1

func (Nakedret) Desc() string

func (Nakedret) Name added in v1.9.1

func (Nakedret) Name() string

func (Nakedret) Run added in v1.9.1

func (lint Nakedret) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Node added in v1.17.2

type Node struct {
	// contains filtered or unexported fields
}

Node represents a Node being linted.

func (*Node) Visit added in v1.17.2

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

type Prealloc struct{}

func (Prealloc) Desc added in v1.9.1

func (Prealloc) Desc() string

func (Prealloc) Name added in v1.9.1

func (Prealloc) Name() string

func (Prealloc) Run added in v1.9.1

func (lint Prealloc) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Scopelint added in v1.17.2

type Scopelint struct{}

func (Scopelint) Desc added in v1.17.2

func (Scopelint) Desc() string

func (Scopelint) Name added in v1.17.2

func (Scopelint) Name() string

func (Scopelint) Run added in v1.17.2

func (lint Scopelint) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Staticcheck added in v1.17.2

type Staticcheck struct {
	// contains filtered or unexported fields
}

func NewStaticcheck added in v1.17.2

func NewStaticcheck() *Staticcheck

func (Staticcheck) Desc added in v1.17.2

func (Staticcheck) Desc() string

func (Staticcheck) Name added in v1.17.2

func (Staticcheck) Name() string

func (Staticcheck) Run added in v1.17.2

func (m Staticcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Structcheck

type Structcheck struct{}

func (Structcheck) Desc

func (Structcheck) Desc() string

func (Structcheck) Name

func (Structcheck) Name() string

func (Structcheck) Run

func (s Structcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Stylecheck added in v1.17.2

type Stylecheck struct {
	// contains filtered or unexported fields
}

func NewStylecheck added in v1.17.2

func NewStylecheck() *Stylecheck

func (Stylecheck) Desc added in v1.17.2

func (Stylecheck) Desc() string

func (Stylecheck) Name added in v1.17.2

func (Stylecheck) Name() string

func (Stylecheck) Run added in v1.17.2

func (m Stylecheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type TypeCheck added in v1.3.1

type TypeCheck struct{}

func (TypeCheck) Desc added in v1.3.1

func (TypeCheck) Desc() string

func (TypeCheck) Name added in v1.3.1

func (TypeCheck) Name() string

func (TypeCheck) Run added in v1.3.1

func (lint TypeCheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Unconvert

type Unconvert struct{}

func (Unconvert) Desc

func (Unconvert) Desc() string

func (Unconvert) Name

func (Unconvert) Name() string

func (Unconvert) Run

func (lint Unconvert) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Unparam added in v1.9.1

type Unparam struct{}

func (Unparam) Desc added in v1.9.1

func (Unparam) Desc() string

func (Unparam) Name added in v1.9.1

func (Unparam) Name() string

func (Unparam) Run added in v1.9.1

func (lint Unparam) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Unused added in v1.17.2

type Unused struct {
	// contains filtered or unexported fields
}

func NewUnused added in v1.17.2

func NewUnused() *Unused

func (Unused) Desc added in v1.17.2

func (Unused) Desc() string

func (Unused) Name added in v1.17.2

func (Unused) Name() string

func (Unused) Run added in v1.17.2

func (m Unused) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

type Varcheck

type Varcheck struct{}

func (Varcheck) Desc

func (Varcheck) Desc() string

func (Varcheck) Name

func (Varcheck) Name() string

func (Varcheck) Run

func (v Varcheck) Run(ctx context.Context, lintCtx *linter.Context) ([]result.Issue, error)

Directories

Path Synopsis
checker
Package checker defines the implementation of the checker commands.
Package checker defines the implementation of the checker commands.
passes/nilness
This is a copy of https://github.com/golang/tools/blob/master/go/analysis/passes/nilness/nilness.go from the commit f0bfdbff1f9c986484a9f02fc198b1efcfe76ebe.
This is a copy of https://github.com/golang/tools/blob/master/go/analysis/passes/nilness/nilness.go from the commit f0bfdbff1f9c986484a9f02fc198b1efcfe76ebe.

Jump to

Keyboard shortcuts

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