Versions in this module Expand all Collapse all v3 v3.0.0 Jan 29, 2019 Changes in this version + func FilterChecks(allChecks []string, checks []string) map[string]bool + type Check struct + FilterGenerated bool + Fn Func + ID string + type Checker interface + Checks func() []Check + Init func(*Program) + Name func() string + Prefix func() string + type FileIgnore struct + Checks []string + File string + func (fi *FileIgnore) Match(p Problem) bool + type Func func(*Job) + type GlobIgnore struct + Checks []string + Pattern string + func (gi *GlobIgnore) Match(p Problem) bool + type Ignore interface + Match func(p Problem) bool + type Job struct + Program *Program + func (j *Job) Errorf(n Positioner, format string, args ...interface{}) *Problem + func (j *Job) File(node Positioner) *ast.File + func (j *Job) NodePackage(node Positioner) *Pkg + type JobStat struct + Duration time.Duration + Job string + type LineIgnore struct + Checks []string + File string + Line int + func (li *LineIgnore) Match(p Problem) bool + func (li *LineIgnore) String() string + type Linter struct + Checkers []Checker + Config config.Config + GoVersion int + Ignores []Ignore + MaxConcurrentJobs int + PrintStats bool + ReturnIgnored bool + func (l *Linter) Lint(initial []*packages.Package, stats *PerfStats) []Problem + type PerfStats struct + CheckerInits map[string]time.Duration + Jobs []JobStat + OtherInitWork time.Duration + PackageLoading time.Duration + SSABuild time.Duration + func (stats *PerfStats) Print(w io.Writer) + type Pkg struct + Config config.Config + SSA *ssa.Package + type Positioner interface + Pos func() token.Pos + type Problem struct + Check string + Checker string + Package *Pkg + Position token.Position + Severity Severity + Text string + func (p *Problem) String() string + type Program struct + AllFunctions []*ssa.Function + AllPackages []*packages.Package + Files []*ast.File + GoVersion int + InitialFunctions []*ssa.Function + InitialPackages []*Pkg + SSA *ssa.Program + func (prog *Program) DisplayPosition(p token.Pos) token.Position + func (prog *Program) File(node Positioner) *ast.File + func (prog *Program) Fset() *token.FileSet + func (prog *Program) Package(path string) *packages.Package + type Severity uint8 + const Error + const Ignored + const Warning