-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
47 lines (43 loc) · 1.28 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- 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
- repo: https://github.com/zricethezav/gitleaks
rev: v8.11.0
hooks:
- id: gitleaks
# 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/golangci/golangci-lint
rev: "v1.48.0"
hooks:
- id: golangci-lint
name: golangci-lint
entry: bash -c 'cd installer && golangci-lint run --fix'
types: [ go ]
language: golang
pass_filenames: false
exclude: (^vendor|^hack\/deploy-.*|^monitoring-satellite\/manifests\/)