pre-commit-hclfmt
Pre-commit hook for running hclfmt.
Requirements
The hook will fail if golang is not installed and available on the system as that is required to install & run the hclfmt program provided by hashicorp as there are not precompiled binaries available.
Usage
To use, add the following to your .pre-commit-config.yaml
:
- repo: https://github.com/ghthor/pre-commit-hclfmt
rev: v1.0.0
hooks:
- id: hclfmt
See Also
Project | Link |
---|---|
vim plugin | https://github.com/ghthor/vim-hclfmt |
hcl | https://github.com/hashicorp/hcl |
hclfmt | https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt |