Documentation ¶
Index ¶
- type Executor
- type Job
- type Metrics
- type Option
- func OptionExcludeRules(ruleIDs []string) Option
- func OptionIncludeRules(ruleIDs []string) Option
- func OptionNoIgnores() Option
- func OptionStopOnErrors(stop bool) Option
- func OptionWithAlternativeIDProvider(f func(string) string) Option
- func OptionWithDebugWriter(w io.Writer) Option
- func OptionWithRegoScanner(s *rego.Scanner) Option
- func OptionWithResultsFilter(f func(rules.Results) rules.Results) Option
- func OptionWithSeverityOverrides(overrides map[string]string) Option
- func OptionWithSingleThread(single bool) Option
- func OptionWithWorkspaceName(workspaceName string) Option
- type Pool
- type Statistics
- type StatisticsItem
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor scans HCL blocks by running all registered rules against them
type Option ¶
type Option func(s *Executor)
func OptionExcludeRules ¶
func OptionIncludeRules ¶
func OptionNoIgnores ¶ added in v0.19.0
func OptionNoIgnores() Option
func OptionStopOnErrors ¶
func OptionWithDebugWriter ¶
func OptionWithRegoScanner ¶ added in v0.19.0
func OptionWithResultsFilter ¶
func OptionWithSingleThread ¶
func OptionWithWorkspaceName ¶
type Statistics ¶
type Statistics []StatisticsItem
func AddStatisticsCount ¶
func AddStatisticsCount(statistics Statistics, result rules.Result) Statistics
func SortStatistics ¶
func SortStatistics(statistics Statistics) Statistics
func (Statistics) PrintStatisticsTable ¶
func (statistics Statistics) PrintStatisticsTable()
type StatisticsItem ¶
Click to show internal directories.
Click to hide internal directories.