forked from GoogleCloudPlatform/security-response-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1 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
# https://pre-commit.com/
# A framework for managing and maintaining multi-language pre-commit hooks.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: mixed-line-ending
- id: end-of-file-fixer
exclude: 'templates/.*'
- id: trailing-whitespace
exclude: 'templates/.*'
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- id: go-vet
stages: [push]
- id: go-lint
- id: go-imports
exclude: '.*\.pb\.go'
- id: go-cyclo
args: [-over=20]
exclude: '.*_test\.go'
- id: validate-toml
- id: no-go-testing
- id: golangci-lint
- id: go-unit-tests
- id: go-build
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.19.0
hooks:
- id: terraform_fmt