@@ -6,30 +6,26 @@ import (
6
6
"github.com/terraform-linters/tflint-ruleset-google/rules/magicmodules"
7
7
)
8
8
9
- var rules = [][]tflint.Rule {
10
- {
11
- NewGoogleComposerEnvironmentInvalidMachineTypeRule (),
12
- NewGoogleComputeInstanceInvalidMachineTypeRule (),
13
- NewGoogleComputeReservationInvalidMachineTypeRule (),
14
- NewGoogleComputeInstanceTemplateInvalidMachineTypeRule (),
15
- NewGoogleContainerClusterInvalidMachineTypeRule (),
16
- NewGoogleContainerNodePoolInvalidMachineTypeRule (),
17
- NewGoogleDataflowJobInvalidMachineTypeRule (),
18
- NewGoogleComputeResourcePolicyInvalidNameRule (),
19
- NewGoogleProjectIamMemberInvalidMemberRule (),
20
- NewGoogleProjectIamAuditConfigInvalidMemberRule (),
21
- NewGoogleProjectIamBindingInvalidMemberRule (),
22
- NewGoogleProjectIamPolicyInvalidMemberRule (),
23
- },
24
- magicmodules .Rules ,
25
- api .Rules ,
9
+ var manualRules = []tflint.Rule {
10
+ NewGoogleComposerEnvironmentInvalidMachineTypeRule (),
11
+ NewGoogleComputeInstanceInvalidMachineTypeRule (),
12
+ NewGoogleComputeReservationInvalidMachineTypeRule (),
13
+ NewGoogleComputeInstanceTemplateInvalidMachineTypeRule (),
14
+ NewGoogleContainerClusterInvalidMachineTypeRule (),
15
+ NewGoogleContainerNodePoolInvalidMachineTypeRule (),
16
+ NewGoogleDataflowJobInvalidMachineTypeRule (),
17
+ NewGoogleComputeResourcePolicyInvalidNameRule (),
18
+ NewGoogleProjectIamMemberInvalidMemberRule (),
19
+ NewGoogleProjectIamAuditConfigInvalidMemberRule (),
20
+ NewGoogleProjectIamBindingInvalidMemberRule (),
21
+ NewGoogleProjectIamPolicyInvalidMemberRule (),
26
22
}
27
23
28
24
// Rules is a list of all rules
29
25
var Rules []tflint.Rule
30
26
31
27
func init () {
32
- for _ , r := range rules {
33
- Rules = append (Rules , r ... )
34
- }
28
+ Rules = append ( Rules , manualRules ... )
29
+ Rules = append (Rules , magicmodules . Rules ... )
30
+ Rules = append ( Rules , api . Rules ... )
35
31
}
0 commit comments