no-terraform-comments
Express Terraform intent through names and descriptions, with optional concise module summaries.
Why
Names and descriptions carry executable intent. An optional short entrypoint summary exposes module purpose without a separate catalog.
Fix
Use clear names and native descriptions. Opt into module_summaries for one short main.tf header; keep other context in the owning declaration or change review.
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 }