forked from claranet/terraform-azurerm-cdn-frontdoor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (50 loc) · 1.48 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
default_install_hook_types: [commit-msg, pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
args:
- --unsafe
- id: check-symlinks
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
args:
- --maxkb=15000
- id: detect-private-key
stages: [pre-commit]
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
rev: v1.88.4
hooks:
- id: terraform_fmt
stages: [pre-commit]
- id: terraform_docs
stages: [pre-commit]
args:
- --args=--config=.config/terraform-docs.yml
exclude: "^modules|^example|^tools"
- id: terraform_validate
stages: [pre-commit]
exclude: ^examples
- id: terraform_tflint
stages: [pre-commit]
exclude: ^examples
args:
- --args=--config=__GIT_WORKING_DIR__/.config/tflint.hcl
- --env-vars=TFLINT_LOG="info"
- id: terraform_tfsec
stages: [pre-commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]