Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise rules documentation #158

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Revise rules documentation #158

merged 1 commit into from
Feb 23, 2024

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Feb 18, 2024

This PR revises some rules documents that are not current.

@@ -33,7 +33,7 @@ Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0

Terraform v0.12 introduces a new interpolation syntax, but continues to support the old 0.11-style interpolation syntax for compatibility.

Terraform will currently print diagnostic warnings when deprecated interpolations are used. Consistent with its deprecation policy, they will raise errors in the next major release (v0.13). TFLint emits an issue instead of a warning with the same logic.
`terraform fmt` can replace this redundant interpolation, so although it is not deprecated in the latest Terraform version, this rule allows you to issue a warning similar to Terraform v0.12.14.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deprecation warning ended up not being an error and was removed in v0.15 hashicorp/terraform#27835

Naming conventions are optional, so it is not necessary to follow this.
But this rule is useful if you want to force the following naming conventions in line with the [Terraform Plugin Naming Best Practices](https://www.terraform.io/docs/extend/best-practices/naming.html).
Naming conventions are optional, so you don't necessarily have to follow them.
However, if your team owns Terraform configurations, it can be helpful to have a consistent naming convention.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked documentation doesn't specifically mention naming conventions for label names, so deleted it.

@@ -2,6 +2,8 @@

Check that all `required_providers` are used in the module.

Note: Because TFLint cannot traverse the complete module tree, it may issue warnings for `required_providers` declared to specify constraints on the provider versions used by a module. If this false positive is unacceptable, you can disable the rule. See also https://github.com/terraform-linters/tflint-ruleset-terraform/issues/21.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It mentions the technical limitations that pose a problem in enabling this rule.

@wata727 wata727 requested a review from bendrucker February 18, 2024 08:07
@wata727 wata727 merged commit 5ed7d12 into main Feb 23, 2024
2 checks passed
@wata727 wata727 deleted the update_docs branch February 23, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants