exclude

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 5 Imported by: 1

README

exclude

PkgGoDev

exclude excludes reporting or analyzing of analysis.Analyzer.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(as []*analysis.Analyzer, fs ...Func) []*analysis.Analyzer

All excludes the analyzers with the functions.

func By

func By(a *analysis.Analyzer, fs ...Func) *analysis.Analyzer

By excludes with the functions.

func FileWithPattern

func FileWithPattern(a *analysis.Analyzer) *analysis.Analyzer

FileWithPattern excludes files which matches the pattern given by exclude flag. Because it excludes only reporting diagnostics, analyzing would be excuted.

func GeneratedFile

func GeneratedFile(a *analysis.Analyzer) *analysis.Analyzer

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)

func TestFile

func TestFile(a *analysis.Analyzer) *analysis.Analyzer

TestFile excludes test files. Because it excludes only reporting diagnostics, analyzing would be excuted.

Types

type DiagnosticFilter

type DiagnosticFilter func(d analysis.Diagnostic) bool

type Func

type Func func(a *analysis.Analyzer) *analysis.Analyzer

Func excludes reporting diagnostics or analyzing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL