-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (31 loc) · 1.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
34 lines (31 loc) · 1.03 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # v8.30.1
hooks:
- id: gitleaks
# Local hooks reuse the project's own Makefile targets so pre-commit and CI
# never drift apart. gosec/govulncheck (make audit) are CI-only: govulncheck
# hits a network vulnerability DB, which has no place gating a local commit.
- repo: local
hooks:
- id: go-lint
name: go lint (fmt + vet + staticcheck + golangci-lint)
entry: make lint
language: system
types: [go]
pass_filenames: false
- id: go-test
name: go test
entry: make test
language: system
types: [go]
pass_filenames: false