-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
40 lines (39 loc) · 1.44 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
37
38
39
40
repos:
- repo: https://github.com/pagopa/dx
rev: c7410ed50d211e756cd4bbb8152e1b275b4485b4
hooks:
- id: terraform_providers_lock_staged
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.1
hooks:
- id: terraform_tflint
args:
- --args=--disable-rule terraform_required_version
- --args=--disable-rule terraform_required_providers
- --args=--disable-rule terraform_unused_declarations
- --args=--disable-rule terraform_deprecated_interpolation
- --args=--disable-rule terraform_deprecated_index
- --args=--disable-rule terraform_typed_variables
- --args=--disable-rule terraform_map_duplicate_keys
- --args=--disable-rule terraform_module_pinned_source
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_fmt
- id: terraform_docs
name: terraform_docs on resources
args:
- --hook-config=--create-file-if-not-exist=true
exclude: |
(?x)^(
src\/(?:.*\/)?(?:_?modules)\/.*
)$
- id: terraform_validate
exclude: '(\/_?modules\/.*)'
args:
- --args=-json
- --args=-no-color
- --hook-config=--retry-once-with-cleanup=true
- id: terraform_trivy
files: ^src/
args:
- --args=--skip-dirs="**/.terraform"
- --args=--ignorefile=__GIT_WORKING_DIR__/.trivyignore