forked from parca-dev/parca-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.79 KB
/
.pre-commit-config.yaml
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
60
61
62
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
exclude: ^internal/(?:go|pprof)/
- id: trailing-whitespace
exclude: ^internal/(?:go|pprof)/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
name: Insert license in comments (Go)
args:
- --license-filepath=scripts/LICENSE.txt
- --comment-style=//
- --use-current-year
- --fuzzy-match-generates-todo
types: [go]
exclude: ^internal/(?:go|pprof|dwarf)/
- id: insert-license
name: Insert license in comments (Shell)
args:
- --license-filepath=scripts/LICENSE.txt
- --comment-style=#
- --use-current-year
- --fuzzy-match-generates-todo
types: [shell]
exclude: ^internal/(?:go|pprof)/
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
hooks:
- id: golangci-lint
entry: make go/lint-fix
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
exclude: ^internal/(?:go|pprof)/
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-2
hooks:
- id: shfmt
# Google-style w/ 4-space indent
args:
- --write
- --indent=4
- --case-indent
- --binary-next-line
exclude: ^internal/(?:go|pprof)/
- repo: https://github.com/google/go-jsonnet
rev: v0.20.0
hooks:
- id: jsonnet-format
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: v1.3.0
hooks:
- id: nixpkgs-fmt