-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
66 lines (59 loc) · 1.81 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
63
64
65
66
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
#- id: check-yaml
# args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-symlinks
- id: mixed-line-ending
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
# keep fork in sync!
- repo: https://github.com/gitpod-io/pre-commit-hooks
rev: "2.1.5"
hooks:
- id: forbid-binary
exclude: |
(?x)^(
.*example-layer.tar.gz|
.*\.(png|svg|ico|gpg)|
dev/version-manifest/version-manifest|
.*gradle-wrapper\.jar
)$
- id: script-must-have-extension
- id: shellcheck
args: [-e, "SC1090,SC1091"]
exclude: .*/gradlew$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.6.2"
hooks:
- id: prettier
# Only enabled for WebApp components initially, to build consensus and incrementally onboard others
files: ^components\/(server|gitpod-protocol|gitpod-db|dashboard|ws-manager-bridge)\/.*\.ts(x?)$
- repo: https://github.com/dnephin/pre-commit-golang
rev: "v0.5.0"
hooks:
- id: go-fmt
- id: go-mod-tidy
- repo: local
hooks:
- id: license-header
name: license-header
entry: leeway run components:update-license-header
language: system
pass_filenames: false
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.75.0
hooks:
- id: terraform_fmt
args:
- --args=-diff
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.0
hooks:
- id: gitleaks
exclude: ^install/installer/.*/.*\.golden$