Open misha-ridge opened 4 years ago
I'd recommend to configure and use File Watcher
I'd recommend to configure and use File Watcher
I guess that's one way to do it. I use the Jetbrains Pre-commit action of terraform fmt
.
It tries to run terraform fmt
on .hcl
files. An returns the error:
Error: Only .tf and .tfvars files can be processed with terraform fmt
As a workaround, I setup File Watchers for terraform fmt
and terragrunt hclfmt
. It seems that File Watcher only triggers off of an explicit save action (cmd-s).
It would be helpful if the Pre-commit action would not pass .hcl
files to terraform fmt
.
Thanks!
Any news here?
Prerequisites
Installation details
Terraform Configuration Files
N/A
Exception
N/A
Expected Behavior
Open a
*.hcl
file, search for "reformat withhclfmt
" in menu.Actual Behavior
No option to format with
hclfmt
. "Reformat Code" action is not a substitute (#141).Steps to Reproduce
See above.
Notes
There is
hclfmt
and there isterragrunt hclfmt
bundled in Terragrunt.