You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to one of the HCL2 authors, each product that uses HCL actually ships its own fmt command intentionally because the domain-specifics may be formatted beyond what the language syntax understands: hashicorp/vscode-hcl#98 (comment)
So that means users of rules_lint might expect their vault files to be vault fmt, packer files to be packer fmt, terraform to be terraform fmt, etc. This strikes me as a lot of burden for a little repo like this to take on.
Or, we can eschew these domain-specifics and just run the generic hclfmt, providing less value than those users expect, as they might take a file that's already "correctly formatted" according to rules_lint, run terraform fmt on it, and then be surprised that it makes modifications. In this case we'd also want to provide a precompiled binary to make things easier for users.
What happened?
Switched from hcl to terraform because terraform-fmt doesn't cover everything
See comment:
rules_lint/format/private/format.sh
Lines 58 to 63 in a9d300f
The text was updated successfully, but these errors were encountered: