forked from intel/policy-library-intel-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (52 loc) · 1.51 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: [--maxkb=1024]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: detect-private-key
- id: check-merge-conflict
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: pretty-format-json
args:
- --autofix
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.76.0
hooks:
- id: terraform_fmt
name: Format Terraform Configuration
- id: terraform_validate
name: Validate Terraform Configuration
args:
- --envs=VAULT_ADDR="" # For local checks
- id: tfupdate
name: Autoupdate Terraform versions
args:
- --args=terraform
- --args=--version >=1.3.0
- id: terraform_tflint
- id: terraform_docs
name: Generate Terraform README files
args:
- --hook-config=--path-to-file=README.md
- --hook-config=--add-to-existing-file=true
- --hook-config=--create-file-if-not-exist=true
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: shfmt
name: Check shell style with shfmt
- id: shellcheck
name: Shell scripts conform to shellcheck