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 cbf6e50 commit d3ce940Copy full SHA for d3ce940
aws/ruleset.go
@@ -14,6 +14,18 @@ type RuleSet struct {
14
config *Config
15
}
16
17
+// RuleNames is a list of rule names provided by the plugin.
18
+func (r *RuleSet) RuleNames() []string {
19
+ names := []string{}
20
+ for _, rule := range r.Rules {
21
+ names = append(names, rule.Name())
22
+ }
23
+ for _, rule := range r.APIRules {
24
25
26
+ return names
27
+}
28
+
29
// ApplyConfig reflects the plugin configuration to the ruleset.
30
func (r *RuleSet) ApplyConfig(config *tflint.Config) error {
31
r.ApplyCommonConfig(config)
0 commit comments