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