forked from antonbabenko/pre-commit-terraform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hooks.yaml
21 lines (21 loc) · 848 Bytes
/
hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- id: terraform_fmt
name: Terraform fmt
description: Rewrites all Terraform configuration files to a canonical format.
entry: terraform_fmt.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$
- id: tflint
name: Terraform linting
description: TFLint is Terraform linter for detecting errors that can not be detected by `terraform plan` - https://github.com/wata727/tflint
entry: tflint.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$
- id: tfrules
name: Terraform rules
description: TFRules is a set of custom rules (require specific tags, enforce naming conventions, etc) that can't be enforced via tflint. It's based on https://github.com/elmundio87/terraform_validate.
entry: tfrules.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$