-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (40 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (40 loc) · 1.09 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
args: ['--allow-multiple-documents']
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
exclude: '^pkg/schema/testdata/.*'
# - repo: https://github.com/tekwizely/pre-commit-golang
# rev: v0.8.3
# hooks:
# - id: go-build-mod
# - id: go-build-pkg
# - id: go-build-repo-mod
# - id: go-build-repo-pkg
# - id: go-fmt
# - id: golangci-lint
# - id: go-build-pkg
- repo: local
hooks:
- id: go-fmt
name: Go Fmt
description: Formats Go code using gofmt
entry: make fmt
language: system
types: [file]
- id: golangci-lint
name: GolangCI-Lint
description: Validates Go code using GolangCI-Lint
entry: make lint
language: system
types: [file]