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 OptionIgnoreCheckErrors(ignore bool) func(s *Scanner)
- func OptionIncludeIgnored() func(s *Scanner)
- func OptionIncludePassed() func(s *Scanner)
- func OptionWithWorkspaceName(workspaceName string) func(s *Scanner)
- func RegisterCheckRule(rule rule.Rule)
- type Option
- type Scanner
- type Statistics
- type StatisticsItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeregisterCheckRule ¶ added in v0.58.2
func GetRegisteredRules ¶
GetRegisteredRules provides all Checks which have been registered with this package
func GetRuleByLegacyID ¶ added in v0.52.0
func OptionExcludeRules ¶
func OptionIgnoreCheckErrors ¶ added in v0.47.0
func OptionIncludeIgnored ¶
func OptionIncludeIgnored() func(s *Scanner)
func OptionIncludePassed ¶
func OptionIncludePassed() func(s *Scanner)
func OptionWithWorkspaceName ¶ added in v0.50.4
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(StatisticsSlice Statistics, result result.Result) Statistics
func SortStatistics ¶
func SortStatistics(statistics Statistics) Statistics
func (Statistics) PrintStatisticsTable ¶
func (statistics Statistics) PrintStatisticsTable()
Click to show internal directories.
Click to hide internal directories.