no-terraform-comments
Keep Terraform source free of comments; express intent through names and descriptions.
Why
An explicit no-comment policy keeps infrastructure intent in executable names, descriptions and the change review.
Fix
Remove the comment. Preserve necessary context in a descriptive name, description attribute or PR explanation; move tool policy into its supported configuration.
Examples
# Keep this bucket private.resource "example_bucket" "private" {}resource "example_bucket" "private" { description = "Private application storage"}locals { value = 1 /**/ + 2 }locals { value = 1 + 2 }Autofix output
locals { value = 1 + 2 }#locals { value = 1 }locals { value = 1 }Autofix output
locals { value = 1 }