Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 674 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 674 Bytes

pre-commit-shfmt hook

⚠️ I would no longer recommend using this method. Use tflint instead which provides this in a much more reliable and featureful way and you can hook it directly with a local pre-commit command or through a pre-commit provider.

Single pre-commit hook which runs terraform_unused_vars on the terraform project.

An example .pre-commit-config.yaml:

-   repo: git://github.com/pecigonzalo/pre-commit-terraform-vars
    sha: master
    hooks:
      -   id: terraform-vars

Enjoy the clean code!