Skip to content

Commit 7941abd

Browse files
style: format rules/api/rule.go.tmpl and run go generate ./... (#333)
1 parent 7523ed6 commit 7941abd

28 files changed

+85
-60
lines changed

rules/api/aws_alb_invalid_security_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
hcl "github.com/hashicorp/hcl/v2"
910
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
1011
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
11-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
12+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1213
)
1314

1415
// AwsALBInvalidSecurityGroupRule checks whether attribute value actually exists
@@ -58,7 +59,7 @@ func (r *AwsALBInvalidSecurityGroupRule) Metadata() interface{} {
5859

5960
// Check checks whether the attributes are included in the list retrieved by DescribeSecurityGroups
6061
func (r *AwsALBInvalidSecurityGroupRule) Check(rr tflint.Runner) error {
61-
runner := rr.(*aws.Runner)
62+
runner := rr.(*aws.Runner)
6263

6364
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6465
Attributes: []hclext.AttributeSchema{

rules/api/aws_alb_invalid_subnet.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
hcl "github.com/hashicorp/hcl/v2"
910
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
1011
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
11-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
12+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1213
)
1314

1415
// AwsALBInvalidSubnetRule checks whether attribute value actually exists
@@ -58,7 +59,7 @@ func (r *AwsALBInvalidSubnetRule) Metadata() interface{} {
5859

5960
// Check checks whether the attributes are included in the list retrieved by DescribeSubnets
6061
func (r *AwsALBInvalidSubnetRule) Check(rr tflint.Runner) error {
61-
runner := rr.(*aws.Runner)
62+
runner := rr.(*aws.Runner)
6263

6364
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6465
Attributes: []hclext.AttributeSchema{

rules/api/aws_db_instance_invalid_db_subnet_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsDBInstanceInvalidDBSubnetGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsDBInstanceInvalidDBSubnetGroupRule) Metadata() interface{} {
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeDBSubnetGroups
5960
func (r *AwsDBInstanceInvalidDBSubnetGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

rules/api/aws_db_instance_invalid_option_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsDBInstanceInvalidOptionGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsDBInstanceInvalidOptionGroupRule) Metadata() interface{} {
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeOptionGroups
5960
func (r *AwsDBInstanceInvalidOptionGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

rules/api/aws_db_instance_invalid_parameter_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsDBInstanceInvalidParameterGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsDBInstanceInvalidParameterGroupRule) Metadata() interface{} {
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeDBParameterGroups
5960
func (r *AwsDBInstanceInvalidParameterGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

rules/api/aws_db_instance_invalid_vpc_security_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
hcl "github.com/hashicorp/hcl/v2"
910
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
1011
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
11-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
12+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1213
)
1314

1415
// AwsDBInstanceInvalidVpcSecurityGroupRule checks whether attribute value actually exists
@@ -58,7 +59,7 @@ func (r *AwsDBInstanceInvalidVpcSecurityGroupRule) Metadata() interface{} {
5859

5960
// Check checks whether the attributes are included in the list retrieved by DescribeSecurityGroups
6061
func (r *AwsDBInstanceInvalidVpcSecurityGroupRule) Check(rr tflint.Runner) error {
61-
runner := rr.(*aws.Runner)
62+
runner := rr.(*aws.Runner)
6263

6364
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6465
Attributes: []hclext.AttributeSchema{

rules/api/aws_elasticache_cluster_invalid_parameter_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsElastiCacheClusterInvalidParameterGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsElastiCacheClusterInvalidParameterGroupRule) Metadata() interface{}
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeCacheParameterGroups
5960
func (r *AwsElastiCacheClusterInvalidParameterGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

rules/api/aws_elasticache_cluster_invalid_security_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
hcl "github.com/hashicorp/hcl/v2"
910
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
1011
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
11-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
12+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1213
)
1314

1415
// AwsElastiCacheClusterInvalidSecurityGroupRule checks whether attribute value actually exists
@@ -58,7 +59,7 @@ func (r *AwsElastiCacheClusterInvalidSecurityGroupRule) Metadata() interface{} {
5859

5960
// Check checks whether the attributes are included in the list retrieved by DescribeSecurityGroups
6061
func (r *AwsElastiCacheClusterInvalidSecurityGroupRule) Check(rr tflint.Runner) error {
61-
runner := rr.(*aws.Runner)
62+
runner := rr.(*aws.Runner)
6263

6364
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6465
Attributes: []hclext.AttributeSchema{

rules/api/aws_elasticache_cluster_invalid_subnet_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsElastiCacheClusterInvalidSubnetGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsElastiCacheClusterInvalidSubnetGroupRule) Metadata() interface{} {
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeCacheSubnetGroups
5960
func (r *AwsElastiCacheClusterInvalidSubnetGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

rules/api/aws_elasticache_replication_group_invalid_parameter_group.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ package api
55
import (
66
"fmt"
77
"log"
8+
89
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
910
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
10-
"github.com/terraform-linters/tflint-ruleset-aws/aws"
11+
"github.com/terraform-linters/tflint-ruleset-aws/aws"
1112
)
1213

1314
// AwsElastiCacheReplicationGroupInvalidParameterGroupRule checks whether attribute value actually exists
@@ -57,7 +58,7 @@ func (r *AwsElastiCacheReplicationGroupInvalidParameterGroupRule) Metadata() int
5758

5859
// Check checks whether the attributes are included in the list retrieved by DescribeCacheParameterGroups
5960
func (r *AwsElastiCacheReplicationGroupInvalidParameterGroupRule) Check(rr tflint.Runner) error {
60-
runner := rr.(*aws.Runner)
61+
runner := rr.(*aws.Runner)
6162

6263
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
6364
Attributes: []hclext.AttributeSchema{

0 commit comments

Comments
 (0)