Documentation ¶
Index ¶
- type Linter
- func (l Linter) Lint(ctx context.Context, input rules.Input) (report.Report, error)
- func (l Linter) WithAddedBundle(b bundle.Bundle) Linter
- func (l Linter) WithCustomRules(paths []string) Linter
- func (l Linter) WithDisableAll(disableAll bool) Linter
- func (l Linter) WithDisabledCategories(disableCategory ...string) Linter
- func (l Linter) WithDisabledRules(disable ...string) Linter
- func (l Linter) WithEnableAll(enableAll bool) Linter
- func (l Linter) WithEnabledCategories(enableCategory ...string) Linter
- func (l Linter) WithEnabledRules(enable ...string) Linter
- func (l Linter) WithUserConfig(config map[string]any) Linter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
Linter stores data to use for linting.
func (Linter) WithAddedBundle ¶
WithAddedBundle adds a bundle of rules and data to include in evaluation.
func (Linter) WithCustomRules ¶
WithCustomRules adds custom rules for evaluation, from the Rego (and data) files provided at paths.
func (Linter) WithDisableAll ¶
WithDisableAll disables all rules when set to true. This overrides configuration provided in file.
func (Linter) WithDisabledCategories ¶
WithDisabledCategories disables provided categories of rules. This overrides configuration provided in file.
func (Linter) WithDisabledRules ¶
WithDisabledRules disables provided rules. This overrides configuration provided in file.
func (Linter) WithEnableAll ¶
WithEnableAll enables all rules when set to true. This overrides configuration provided in file.
func (Linter) WithEnabledCategories ¶
WithEnabledCategories enables provided categories of rules. This overrides configuration provided in file.
func (Linter) WithEnabledRules ¶
WithEnabledRules enables provided rules. This overrides configuration provided in file.