Documentation ¶
Index ¶
- 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 GeneratedFile(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 ¶
This section is empty.
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 GeneratedFile ¶
GeneratedFile excludes auto generated files. Because it excludes only reporting diagnostics, analyzing would be excuted.
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.