forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/provider: Enable staticcheck S1034 check
Reference: hashicorp#7243 Previous output from linter: ``` aws/iam_policy_model.go:180:11: S1034: assigning the result of this type assertion to a variable (switch var_values := var_values.(type)) could eliminate the following type assertions: aws/iam_policy_model.go:182:103 (gosimple) switch var_values.(type) { ^ aws/resource_aws_iam_server_certificate.go:218:9: S1034: assigning the result of this type assertion to a variable (switch cert := cert.(type)) could eliminate the following type assertions: aws/resource_aws_iam_server_certificate.go:220:13 aws/resource_aws_iam_server_certificate.go:222:14 (gosimple) switch cert.(type) { ^ aws/resource_aws_instance.go:139:13: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_instance.go:141:30 (gosimple) switch v.(type) { ^ aws/resource_aws_key_pair.go:50:13: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_key_pair.go:52:32 (gosimple) switch v.(type) { ^ aws/resource_aws_launch_configuration.go:76:13: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_launch_configuration.go:78:30 (gosimple) switch v.(type) { ^ aws/resource_aws_opsworks_application.go:171:16: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_opsworks_application.go:173:35 (gosimple) switch v.(type) { ^ aws/resource_aws_opsworks_application.go:184:16: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_opsworks_application.go:186:35 (gosimple) switch v.(type) { ^ aws/resource_aws_opsworks_application.go:196:16: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_opsworks_application.go:198:35 (gosimple) switch v.(type) { ^ aws/resource_aws_s3_bucket.go:2283:10: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_s3_bucket.go:2285:30 (gosimple) switch v.(type) { ^ aws/resource_aws_security_group.go:1340:9: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_security_group.go:1342:25 (gosimple) switch v.(type) { ^ aws/resource_aws_spot_fleet_request.go:242:16: S1034: assigning the result of this type assertion to a variable (switch v := v.(type)) could eliminate the following type assertions: aws/resource_aws_spot_fleet_request.go:244:33 (gosimple) switch v.(type) { ^ ```
- Loading branch information
Showing
10 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,5 @@ checks = [ | |
"-ST1000", | ||
"-ST1003", | ||
"-ST1005", | ||
"-ST1012", | ||
"-S1034" | ||
"-ST1012" | ||
] |