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 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 Lint ¶
func Lint(cs []*analysis.Analyzer, cums []lint.CumulativeChecker, paths []string, opt *Options) ([]lint.Problem, error)
func NewVersionFlag ¶
func ProcessFlagSet ¶
Types ¶
type Options ¶
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-2019.2.2
- Published
- Jul 29, 2019
- Platform
- windows/amd64
- Imports
- 24 packages
- Last checked
- 11 minutes ago –
Tools for package owners.