no-trailing-spaces rule #1819
-
Hey guys, I would to highlight extra/wrong spaces like the image below |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
TFLint does not try to deal with formatting. You should use Terraform, similar to Go, provides a canonical formatter as part of the core tool, to mitigate the sort of stylistic bikeshedding seen in other languages, especially JavaScript. The only exceptions where it's appropriate for TFLint to get involved via a core ruleset is where It's a non-goal for the |
Beta Was this translation helpful? Give feedback.
TFLint does not try to deal with formatting. You should use
terraform fmt -check
for this.Terraform, similar to Go, provides a canonical formatter as part of the core tool, to mitigate the sort of stylistic bikeshedding seen in other languages, especially JavaScript. The only exceptions where it's appropriate for TFLint to get involved via a core ruleset is where
terraform fmt
allows multiple syntaxes for compatibility but the official documentation recommends a certain style. There's only one case of that so far:https://github.com/terraform-linters/tflint-ruleset-terraform/blob/main/docs/rules/terraform_comment_syntax.md
It's a non-goal for the
terraform
ruleset to provide configurable…