Documentation
¶
Index ¶
- func DeregisterCheckRule(r rule.Rule)
- func GetRegisteredRules() []rule.Rule
- func GetRuleById(id string) (*rule.Rule, error)
- func GetRuleByLegacyID(legacyID string) (*rule.Rule, error)
- func OptionExcludeRules(ruleIDs []string) func(s *Scanner)
- func OptionIncludeIgnored() func(s *Scanner)
- func OptionIncludePassed() func(s *Scanner)
- func OptionIncludeRules(ruleIDs []string) func(s *Scanner)
- func OptionStopOnErrors() func(s *Scanner)
- func OptionWithSingleThread(single bool) func(s *Scanner)
- func OptionWithWorkspaceName(workspaceName string) func(s *Scanner)
- func RegisterCheckRule(rule rule.Rule)
- type Job
- type Option
- type Pool
- type Scanner
- type Statistics
- type StatisticsItem
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeregisterCheckRule ¶
func GetRegisteredRules ¶
GetRegisteredRules provides all Checks which have been registered with this package
func OptionExcludeRules ¶
func OptionIncludeIgnored ¶
func OptionIncludeIgnored() func(s *Scanner)
func OptionIncludePassed ¶
func OptionIncludePassed() func(s *Scanner)
func OptionIncludeRules ¶
func OptionStopOnErrors ¶
func OptionStopOnErrors() func(s *Scanner)
func OptionWithSingleThread ¶
func OptionWithWorkspaceName ¶
func RegisterCheckRule ¶
RegisterCheckRule registers a new Rule which should be run on future scans
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans HCL blocks by running all registered rules against them
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.