Documentation
¶
Index ¶
- type Cli
- func (c *Cli) LintFile(rulesMap map[analysis.Language][]analysis.Rule, ...) ([]*analysis.Issue, error)
- func (c *Cli) LoadYamlRules(ruleDir string) (map[analysis.Language][]analysis.YmlRule, error)
- func (c *Cli) Run() error
- func (c *Cli) RunLints(patternRules map[analysis.Language][]analysis.YmlRule, runBuiltinRules bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// RootDirectory is the target directory to analyze
RootDirectory string
// Rules is a list of lints that are applied to the files in `RootDirectory`
Rules []analysis.Rule
Config *config.Config
}
func (*Cli) LoadYamlRules ¶
LoadYamlRules reads all the custom rules from the `.globstar/` directory in the project root, or from checkers/ dir for built-in rules
Click to show internal directories.
Click to hide internal directories.