-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.51 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
# Obviously copied from https://github.com/gitpod-io/workspace-images/blob/6e94c2184c21cd3aa1f1343d45253850eecaff32/.pre-commit-config.yaml
# alongsides some necessary config changes for Hadolint to work in Dazzle projects.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.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
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: "2.1.5"
hooks:
- id: forbid-binary
- id: script-must-have-extension
- id: shellcheck
- id: shfmt
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.30.0
hooks:
- id: markdownlint
args: ["--ignore", "CHANGELOG.md"]
# TODO: enable after fixing lint errors
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
args: [
"--trusted-registry", "ghcr.io",
"--trusted-registry", "localhost:5000",
"--trusted-registry", "quay.io",
"--trusted-registry", "docker.io",
"--trusted-registry", "dock.mau.dev",
"--ignore", "DL3009",
"--ignore", "DL3006",
"--warning", "DL3004",
"--info", "DL3015",
"-t", "warning"
]