File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 11package aws
22
33import (
4- "fmt"
5-
64 "github.com/terraform-linters/tflint-plugin-sdk/hclext"
75 "github.com/terraform-linters/tflint-plugin-sdk/tflint"
86)
@@ -43,17 +41,7 @@ func (r *RuleSet) ApplyConfig(body *hclext.BodyContent) error {
4341 return nil
4442}
4543
46- // Check runs inspections for each rule with the custom AWS runner.
47- func (r * RuleSet ) Check (rr tflint.Runner ) error {
48- runner , err := NewRunner (rr , r .config )
49- if err != nil {
50- return err
51- }
52-
53- for _ , rule := range r .EnabledRules {
54- if err := rule .Check (runner ); err != nil {
55- return fmt .Errorf ("Failed to check `%s` rule: %s" , rule .Name (), err )
56- }
57- }
58- return nil
44+ // NewRunner injects a custom AWS runner
45+ func (r * RuleSet ) NewRunner (runner tflint.Runner ) (tflint.Runner , error ) {
46+ return NewRunner (runner , r .config )
5947}
You can’t perform that action at this time.
0 commit comments