Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Languages ¶ added in v0.20.2
Languages store the name to a singular language configuration within crie
type Options ¶ added in v0.20.8
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"`
Lang string `json:"lang" yaml:"lang"`
StrictLogging bool `json:"-" yaml:"-"`
}
Options are the core flags and settings to change execution
type RunConfiguration ¶
type RunConfiguration struct {
Options Options
Ignore *regexp.Regexp
Languages Languages
// contains filtered or unexported fields
}
RunConfiguration is the entire working set of information to process a project
func (*RunConfiguration) GetLanguage ¶
func (s *RunConfiguration) GetLanguage(lang string) (*linter.Language, error)
GetLanguage lets us query a language that might be in our projects' configuration
func (*RunConfiguration) IsRepo ¶
func (s *RunConfiguration) IsRepo(path string) bool
IsRepo checks for a .git folder
func (*RunConfiguration) List ¶
func (s *RunConfiguration) List()
List to print all languages chkConf fmt and always commands
func (*RunConfiguration) NoStandards ¶
func (s *RunConfiguration) NoStandards()
NoStandards runs all fmt exec commands in languages and in always fmt
func (*RunConfiguration) Run ¶
func (s *RunConfiguration) Run(lintType string) (err error)
Run is the generic way to run everything based on the packages configuration
Click to show internal directories.
Click to hide internal directories.