github.com/terraform-linters/tflint@v0.51.2-0.20240520175844-3750771571b6/plugin/stub-generator/sources/testing/main.go (about) 1 package main 2 3 import ( 4 "github.com/terraform-linters/tflint-plugin-sdk/plugin" 5 "github.com/terraform-linters/tflint-plugin-sdk/tflint" 6 "github.com/terraform-linters/tflint/plugin/stub-generator/sources/testing/rules" 7 ) 8 9 func main() { 10 plugin.Serve(&plugin.ServeOpts{ 11 RuleSet: &tflint.BuiltinRuleSet{ 12 Name: "testing", 13 Version: "0.1.0", 14 Rules: []tflint.Rule{ 15 rules.NewAwsAutoscalingGroupCtyEvalExampleRule(), 16 rules.NewAwsIAMPolicyExampleRule(), 17 rules.NewAwsInstanceExampleTypeRule(), 18 rules.NewAwsS3BucketExampleLifecycleRuleRule(), 19 rules.NewAwsInstanceMapEvalExampleRule(), 20 rules.NewAwsS3BucketWithConfigExampleRule(), 21 rules.NewAwsRoute53RecordEvalOnRootCtxExampleRule(), 22 rules.NewAwsDBInstanceWithDefaultConfigExampleRule(), 23 rules.NewAwsCloudFormationStackErrorRule(), 24 rules.NewLocalsJustAttributesExampleRule(), 25 rules.NewAwsIAMRoleExampleRule(), 26 rules.NewTestingAssertionsExampleRule(), 27 rules.NewTerraformAutofixRemoveLocalRule(), // should be former than terraform_autofix_comment because this rule changes the line number 28 rules.NewTerraformAutofixCommentRule(), 29 rules.NewAwsInstanceAutofixConflictRule(), // should be later than terraform_autofix_comment because this rule adds an issue for terraform_autofix_comment 30 }, 31 }, 32 }) 33 }