-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (46 loc) · 1.37 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (46 loc) · 1.37 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
# 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
- 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: govulncheck
name: govulncheck
args: ["bash", "-c", "go tool golang.org/x/vuln/cmd/govulncheck ./..."]
- 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