blob: fd6856df78a485cae521f7cb489b0bc81e9d1b29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
pre-commit:
parallel: true
commands:
hadolint:
glob: "**/*Dockerfile"
run: hadolint {staged_files}
woodpecker:
glob: ".woodpecker/*.{yml,yaml}"
run: woodpecker lint {staged_files}
yamllint:
glob: "**/*.{yml,yaml}"
run: yamllint {staged_files}
fmt:
run: cargo fmt --all -- --check
stage_fixed: true
clippy:
run: cargo clippy --all-targets --all-features -- -D warnings
test:
run: cargo test --all
gitleaks:
run: gitleaks protect --staged
|