diff options
Diffstat (limited to 'lefthook.yml')
| -rw-r--r-- | lefthook.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..fd6856d --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,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 |
