forked from massdriver-cloud/mass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.07 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
fail_fast: false
repos:
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
hooks:
- id: go-fmt
- id: go-vet
# - id: go-lint
#- id: go-imports
#- id: go-cyclo
# args: [-over=15]
#- id: validate-toml
- id: no-go-testing
# - id: golangci-lint
#- id: go-critic
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-json
exclude: .devcontainer/
- id: pretty-format-json
args: [--autofix, --no-sort-keys, --indent=4]
exclude: .devcontainer/
- id: check-yaml
exclude: ^pkg/template/testdata/application-templates.*|pkg/bundle/templates/terraform/massdriver.yaml
- id: end-of-file-fixer
exclude: ^pkg/template/testdata/application-templates.*
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: no-commit-to-branch
args: [-b, main]