generated from notablehealth/terraform-google-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.46 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
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
# To update to all latest tagged versions run:
# pre-commit autoupdate
# Manually run all hooks
# pre-commit run -a
# Install tools on mac
# brew install pre-commit gawk terraform-docs tflint tfsec coreutils checkov terrascan shellcheck
# npm install -g markdown-link-check
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0
hooks:
#- id: infracost_breakdown
- id: terraform_fmt
- id: terraform_docs
- id: terraform_validate
- id: terraform_tflint
- id: terraform_tfsec
- id: terraform_checkov
- id: terrascan
args:
- --args=-"-non-recursive"
- --args="-v"
#- --args="-c .terrascan.toml"
#- id: tfupdate
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.22
hooks:
- id: shellcheck
#- id: markdown-link-check
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.23.2
# hooks:
# - id: markdownlint
# args: [
# "--config=.mdlrc"
# ]
#default_stages: [commit, push]