-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
46 lines (42 loc) · 1.26 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
default_stages: [commit]
fail_fast: true
exclude: .devcontainer/devcontainer.json
repos:
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
name: Git - check commit message
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: pretty-format-json
args: [ --autofix, --no-sort-keys]
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-beta.5
hooks:
- id: go-mod-tidy-repo
name: Go - check go.mod status
- id: go-test-mod
name: Go - check unit test status
- id: go-build-mod
name: Go - check build status
- id: go-vet-mod
name: Go - check suspicious constructs
- id: go-revive-mod
name: Go - check style
- id: go-sec-mod
name: Go - check source code for security problems
- id: go-staticcheck-mod
name: Go - check static analysis
- id: go-returns-repo
name: Go - check pretty printer
args: [ -w ]
- id: golangci-lint-mod
name: Go - check golangci-lint