-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (59 loc) · 1.8 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (59 loc) · 1.8 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-json
# exclude: internal/agi/testdata/errors_on_unmarshal_with_invalid_json/.config.json
- id: check-yaml
- id: check-added-large-files
# - id: detect-aws-credentials
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
args: ["--hook:env:GOPRIVATE=github.com/DIN-center"]
- id: my-cmd-repo
alias: go-generate
name: go-generate
args: ["go", "generate", "./..."]
- id: go-test-mod
- id: golangci-lint-mod
- id: my-cmd-repo
alias: gremlins
name: gremlins
args: ["bash", "-c", "go tool gremlins unleash"]
- id: my-cmd-repo
alias: govulncheck
name: govulncheck
args: ["bash", "-c", "go tool govulncheck ./..."]
# - id: my-cmd-repo
# alias: lichen-build
# name: lichen-build
# args: ["bash", "-c", "go build -o ./bin/ax-lichen ."]
# - id: my-cmd-repo
# alias: lichen-check
# name: lichen-check
# args: ["bash", "-c", "go tool lichen ./bin/ax-lichen"]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.88.21
hooks:
- id: trufflehog
alias: trufflehog
name: trufflehog