Skip to content

no-trailing-spaces rule #1819

Closed Answered by bendrucker
leandrocunha asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bendrucker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants