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 Language ¶
Language is used to associate a file pattern with the relevant tools to check and format
type LintType ¶
type LintType int
LintType indicates which linter to retrieve for a language (formatter or checker).
type Options ¶
type Options struct {
Continue bool `json:"continue" yaml:"continue"`
Passes bool `json:"passes" yaml:"passes"`
GitTarget string `json:"gitTarget" yaml:"gitTarget"`
GitDiff bool `json:"gitDiff" yaml:"gitDiff"`
Only string `json:"only" yaml:"only"`
StrictLogging bool `json:"-" yaml:"-"`
}
Options are the core flags and settings to change execution
type RunConfiguration ¶
RunConfiguration is the entire working set of information to process a project
func (*RunConfiguration) GetLanguage ¶
func (s *RunConfiguration) GetLanguage(only string) (*Language, error)
GetLanguage returns the Language configuration by its name or an error if it does not exist.
func (*RunConfiguration) NoStandards ¶
func (s *RunConfiguration) NoStandards() error
NoStandards runs all fmt exec commands in languages and in always fmt
func (*RunConfiguration) Run ¶
func (s *RunConfiguration) Run(lintType LintType) error
Run is the generic way to run everything based on the packages configuration