-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.64 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repos:
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.23 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
- id: terraform-validate
- id: terraform-fmt
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.85.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_trivy
args:
- "--args=--skip-dirs=**/.terragrunt-cache"
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml
- id: terraform_checkov
- id: terraform_tflint
args:
- "--args=--enable-rule=terraform_deprecated_interpolation"
- "--args=--enable-rule=terraform_deprecated_index"
- "--args=--enable-rule=terraform_unused_declarations"
- "--args=--enable-rule=terraform_comment_syntax"
- "--args=--enable-rule=terraform_documented_outputs"
- "--args=--enable-rule=terraform_documented_variables"
- "--args=--enable-rule=terraform_typed_variables"
- "--args=--enable-rule=terraform_naming_convention"
- "--args=--enable-rule=terraform_required_version"
- "--args=--enable-rule=terraform_required_providers"
- "--args=--enable-rule=terraform_unused_required_providers"
- "--args=--enable-rule=terraform_standard_module_structure"
- id: terragrunt_fmt
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.13.0 # Get the latest from: https://github.com/commitizen-tools/commitizen/releases
hooks:
- id: commitizen
stages: [commit-msg]