-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (40 loc) · 1.3 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
# SKIP=<id> <id> git commit -m "foo"
# git commit -m "bar" --no-verify #skip all
repos:
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.5 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
- id: terraform-fmt
# - id: terraform-validate
- id: tflint
# - id: shellcheck
- id: gofmt
- id: golint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: pretty-format-json
- id: detect-aws-credentials
- id: detect-private-key
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.30.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
# - id: terraform_tfsec
- id: terraform_docs
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.16
hooks:
# - id: circleci-config-validate
- id: forbid-binary
# - id: go-fmt
# - id: go-test
# - id: go-mod-tidy
# - id: go-generate
# - id: shellcheck
# - id: shfmt