Skip to content

Commit 187ef05

Browse files
updated readme and config file
1 parent 8638f2d commit 187ef05

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
repos:
2-
- repo: https://github.com/squareops/pre-commit
3-
rev: v0.1.12
4-
hooks:
5-
- id: terraform-fmt
6-
- id: terraform-validate
7-
- id: tflint
8-
- repo: https://github.com/squareops/pre-commit-terraform
9-
rev: v1.47.0
10-
hooks:
11-
- id: terraform_docs
122
- repo: https://github.com/pre-commit/pre-commit-hooks
133
rev: v4.1.0
144
hooks:
5+
- id: trailing-whitespace
6+
args: ['--markdown-linebreak-ext=md']
7+
- id: end-of-file-fixer
158
- id: check-merge-conflict
16-
# - id: end-of-file-fixer
9+
- id: detect-private-key
10+
- id: detect-aws-credentials
11+
args: ['--allow-missing-credentials']
12+
- repo: https://github.com/antonbabenko/pre-commit-terraform
13+
rev: v1.77.0
14+
hooks:
15+
- id: terraform_fmt
16+
- id: terraform_docs
17+
args:
18+
- '--args=--lockfile=false'
19+
- --hook-config=--add-to-existing-file=true
20+
- --hook-config=--create-file-if-not-exist=true
21+
22+
- id: terraform_tflint
23+
args:
24+
- --args=--config=.tflint.hcl
25+
- id: terraform_tfsec
26+
files: ^examples/ # only scan `examples/*` which are the implementation
27+
args:
28+
- --args=--config-file=__GIT_WORKING_DIR__/tfsec.yaml
29+
- --args=--concise-output

0 commit comments

Comments
 (0)