Documentation
¶
Overview ¶
Package runner contains the logic to run the linters
Package runner contains the logic to run the linters
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LintType ¶
type LintType int
LintType indicates which linter to retrieve for a language (formatter or checker).
type LinterMatch ¶ added in v1.0.6
LinterMatch is used to associate a file pattern with the relevant tools to check and format
type NamedMatches ¶ added in v1.0.6
type NamedMatches map[string]LinterMatch
NamedMatches store the name for a LinterMatch to make referencing them easier
type Options ¶
type Options struct {
Continue bool `json:"continue,omitzero" yaml:"continue"`
Passes bool `json:"passes,omitzero" yaml:"passes"`
GitTarget string `json:"gitTarget,omitzero" yaml:"gitTarget"`
GitDiff bool `json:"gitDiff,omitzero" yaml:"gitDiff"`
Only string `json:"only,omitzero" yaml:"only"`
StrictLogging bool `json:"-" yaml:"-"`
}
Options are the core flags and settings to change execution
type RunConfiguration ¶
type RunConfiguration struct {
Options Options
Ignore *regexp.Regexp
NamedMatches NamedMatches
}
RunConfiguration is the entire working set of information to process a project
func (*RunConfiguration) NoStandards ¶
func (s *RunConfiguration) NoStandards(w io.Writer) error
NoStandards runs all fmt exec commands in matchers and in always fmt
Source Files
¶
Click to show internal directories.
Click to hide internal directories.