-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (51 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (51 loc) · 1.79 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
# Don't try to validate Helm chart templates — they contain Go
# templating and are not valid YAML until rendered.
exclude: ^object-lease-operator/helm-charts/
- id: check-json
- id: detect-private-key
- id: no-commit-to-branch
- repo: local
hooks:
- id: shellcheck
name: Shellcheck
entry: shellcheck -x
language: system
files: ^(scripts/|run.sh$|.*\.sh$)
- id: gitleaks
name: Gitleaks (secrets scanner)
entry: gitleaks detect
pass_filenames: false
always_run: true
language: system
- id: codespell
name: Codespell (spell check docs)
entry: codespell
language: system
# Only run on docs and README to avoid noisy suggestions in tests/code
files: ^(README.md|docs/|object-lease-console-plugin/)
- id: make-vet
name: Run `go vet`
entry: make vet
language: system
pass_filenames: false
always_run: true
- id: make-fmt
name: Run repository formatter (go fmt)
entry: make fmt
language: system
pass_filenames: false
always_run: true
- id: make-lint
name: Run repository linter
entry: make lint
language: system
pass_filenames: false
always_run: true