package lintutil
import "honnef.co/go/tools/lint/lintutil"
Package lintutil provides helpers for writing linter command lines.
Index ¶
- func FlagSet(name string) *flag.FlagSet
- func InitializeAnalyzers(docs map[string]*lint.Documentation, analyzers map[string]*analysis.Analyzer) map[string]*analysis.Analyzer
- func Lint(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, paths []string, opt *Options) ([]lint.Problem, error)
- func NewVersionFlag() flag.Getter
- func ProcessFlagSet(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, fs *flag.FlagSet)
- type Options
- type VersionFlag
Functions ¶
func FlagSet ¶
func InitializeAnalyzers ¶
func InitializeAnalyzers(docs map[string]*lint.Documentation, analyzers map[string]*analysis.Analyzer) map[string]*analysis.Analyzer
func Lint ¶
func Lint(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, paths []string, opt *Options) ([]lint.Problem, error)
func NewVersionFlag ¶
func ProcessFlagSet ¶
Types ¶
type Options ¶
type Options struct { Config config.Config Tags string LintTests bool GoVersion int PrintAnalyzerMeasurement func(analysis *analysis.Analyzer, pkg *lint.Package, d time.Duration) RepeatAnalyzers uint }
type VersionFlag ¶
type VersionFlag int
func (*VersionFlag) Get ¶
func (v *VersionFlag) Get() interface{}
func (*VersionFlag) Set ¶
func (v *VersionFlag) Set(s string) error
func (*VersionFlag) String ¶
func (v *VersionFlag) String() string
Source Files ¶
stats.go util.go
Directories ¶
Path | Synopsis |
---|---|
lint/lintutil/format | Package format provides formatters for linter problems. |
- Version
- v0.0.1-2020.1.1
- Published
- Feb 21, 2020
- Platform
- windows/amd64
- Imports
- 26 packages
- Last checked
- 11 minutes ago –
Tools for package owners.