Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { // Skip specifies whether or not the check should be skipped entirely. Skip bool // Args specifies the command-line arguments provided to the check. Args []string // LineFilters specifies the filter definitions. Raw output lines that match the filter are excluded from // processing. LineFilters []checkoutput.Filterer }
type OKGo ¶
type OKGo struct { // ReleaseTag specifies the latest supported Go release tag. Empty if default should be used. ReleaseTag string // Checks specifies the configuration used by the checks. The key is the name of the check and the value is the // custom configuration for that check. Checks map[amalgomated.Cmd]Checker // Exclude specifies the files that should be excluded from tests. Exclude matcher.Matcher }
func (*OKGo) ArgsForCheck ¶
func (p *OKGo) ArgsForCheck(check amalgomated.Cmd) ([]string, bool)
ArgsForCheck returns the arguments for the requested check stored in the Config, or nil if no configuration for the specified check was present in the configuration. The second return value indicates whether or not configuration for the requested check was present.
func (*OKGo) FiltersForCheck ¶
func (p *OKGo) FiltersForCheck(check amalgomated.Cmd) []checkoutput.Filterer
FiltersForCheck returns the filters that should be used for the requested check. The returned slice is a concatenation of the global filters derived from the package excludes specified in the configuration followed by the filters specified for the provided check in the configuration. Returns an empty slice if no filters are present globally or for the specified check.The derivation from the global filters is done in case the packages can't be excluded before the check is run (can happen if the check only supports the "all" mode).