Documentation ¶
Index ¶
- Variables
- func All(as []*analysis.Analyzer, fs ...Func) []*analysis.Analyzer
- func By(a *analysis.Analyzer, fs ...Func) *analysis.Analyzer
- func FileWithPattern(a *analysis.Analyzer) *analysis.Analyzer
- func Flags(args []string, as ...*analysis.Analyzer) (remains []string, _ error)
- func GeneratedFile(a *analysis.Analyzer) *analysis.Analyzer
- func LintIgnoreComment(a *analysis.Analyzer) *analysis.Analyzer
- func ReportWithFilter(pass *analysis.Pass, filters ...DiagnosticFilter) func(analysis.Diagnostic)
- func TestFile(a *analysis.Analyzer) *analysis.Analyzer
- type DiagnosticFilter
- type Func
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFuncs = []Func{GeneratedFile, TestFile, FileWithPattern}
AllFuncs is all functions.
Functions ¶
func FileWithPattern ¶
FileWithPattern excludes files which matches the pattern given by exclude flag. Because it excludes only reporting diagnostics, analyzing would be excuted.
func Flags ¶ added in v0.2.0
Flags sets flags which name has "all-exclude" prefix to each analyzers. Flags returns remain arguments including flags which did not set to the analyzers.
func GeneratedFile ¶
GeneratedFile excludes auto generated files. Because it excludes only reporting diagnostics, analyzing would be excuted.
func LintIgnoreComment ¶ added in v0.2.0
LintIgnoreComment excludes diagnostics with staticchek style //lint:ignore comment.
func ReportWithFilter ¶
func ReportWithFilter(pass *analysis.Pass, filters ...DiagnosticFilter) func(analysis.Diagnostic)
Types ¶
type DiagnosticFilter ¶
type DiagnosticFilter func(d analysis.Diagnostic) bool
Click to show internal directories.
Click to hide internal directories.