-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
27 lines (27 loc) · 884 Bytes
/
lefthook.yml
File metadata and controls
27 lines (27 loc) · 884 Bytes
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
pre-commit:
parallel: true
commands:
hadolint:
glob: "*Dockerfile*"
run: docker run --rm -i -v ${PWD}:/app -w="/app" hadolint/hadolint < {staged_files}
markdownlint:
glob: "*.md*"
exclude: "CHANGELOG.md"
run: docker run --rm -v ${PWD}:/app -w="/app" davidanson/markdownlint-cli2:v0.14.0 {staged_files}
lint:
parallel: true
commands:
hadolint:
glob: "*Dockerfile*"
run: docker run --rm -i -v ${PWD}:/app -w="/app" hadolint/hadolint < Dockerfile
markdownlint:
glob: "*.md*"
exclude: "CHANGELOG.md"
run: docker run --rm -v ${PWD}:/app -w="/app" davidanson/markdownlint-cli2:v0.14.0 {all_files}
fix:
parallel: true
commands:
markdownlint:
glob: "*.md*"
exclude: "CHANGELOG.md"
run: docker run --rm -v ${PWD}:/app -w="/app" davidanson/markdownlint-cli2:v0.14.0 {all_files} --fix