We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b7eb5 commit ac9895aCopy full SHA for ac9895a
terraform/ruleset.go
@@ -19,6 +19,14 @@ type RuleSet struct {
19
rulesetConfig *Config
20
}
21
22
+func (r *RuleSet) RuleNames() []string {
23
+ names := make([]string, len(r.PresetRules["all"]))
24
+ for idx, rule := range r.PresetRules["all"] {
25
+ names[idx] = rule.Name()
26
+ }
27
+ return names
28
+}
29
+
30
func (r *RuleSet) ConfigSchema() *hclext.BodySchema {
31
r.rulesetConfig = &Config{}
32
return hclext.ImpliedBodySchema(r.rulesetConfig)
0 commit comments