-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.04 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
repos:
# REFERENCE: https://github.com/pre-commit/pre-commit-hooks
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: check-merge-conflict
- id: trailing-whitespace
# REFERENCE: https://github.com/antonbabenko/pre-commit-terraform
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.56.0
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_tflint
- id: terraform_validate
args:
- --args=-json
- --args=-no-color
- id: checkov
args:
- "-d"
- "."
# - "--skip-check"
# - ""
- id: terraform_tfsec
files: .
args:
- "--args=--no-color"
# REFERENCE: https://github.com/dnephin/pre-commit-golang
# Mainly because the test are going to be written by Terratest
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-beta.4
hooks:
- id: go-fmt
- id: go-staticcheck-mod