Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 582 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 582 Bytes

pre-commit-shfmt hook

Copy of git://github.com/pecigonzalo/pre-commit-terraform-vars with added logic for unused locals

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

To skip a local from failing use:

  #terraform_unused_vars:skip=local.the_local_to_be_skipped

An example .pre-commit-config.yaml:

-   repo: git://github.com/maartenvanderhoef/pre-commit-terraform-vars
    rev: v2.0.0
    hooks:
      -   id: terraform-vars