-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
63 lines (61 loc) · 1.96 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: check-symlinks
- id: check-vcs-permalinks
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: mixed-line-ending
args:
- --fix=lf
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-toml
- id: check-xml
- id: fix-byte-order-marker
- id: destroyed-symlinks
- id: end-of-file-fixer
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.97.0
hooks:
- id: terraform_fmt
- id: terraform_validate
- id: terraform_tflint
args:
- "--args=--enable-rule=terraform_unused_declarations"
- "--args=--enable-rule=terraform_naming_convention"
- "--args=--enable-rule=terraform_deprecated_index"
- "--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_deprecated_interpolation"
- "--args=--enable-plugin=tps-codestyle"
- id: terraform_docs
args:
- --hook-config=--create-file-if-not-exist=true
- --args=--config=.terraform-docs.yml
- repo: https://github.com/aquasecurity/tfsec
rev: v1.28.13
hooks:
- id: tfsec
args:
- "--config-file=.tfsec.yaml"
- "--exclude-downloaded-modules"
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- id: circleci-config-validate
- id: shellcheck
additional_dependencies: []
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt