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 1
1
package google
2
2
3
3
import (
4
- "fmt"
5
-
6
4
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
7
5
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
8
6
)
@@ -43,17 +41,7 @@ func (r *RuleSet) ApplyConfig(body *hclext.BodyContent) error {
43
41
return nil
44
42
}
45
43
46
- // Check runs inspections for each rule with the custom Google 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 Google runner
45
+ func (r * RuleSet ) NewRunner (runner tflint.Runner ) (tflint.Runner , error ) {
46
+ return NewRunner (runner , r .config )
59
47
}
You can’t perform that action at this time.
0 commit comments