-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.lefthook.yml
More file actions
31 lines (25 loc) · 914 Bytes
/
.lefthook.yml
File metadata and controls
31 lines (25 loc) · 914 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
28
29
30
31
# Lefthook Configuration for COVID CO2 Tracker
# Git hooks for security scanning and quality validation
# Documentation: https://github.com/evilmartians/lefthook
pre-commit:
parallel: true # Run all checks in parallel for speed
commands:
# Security: Prevent credential leaks (CRITICAL)
gitleaks:
run: scripts/git-hooks/gitleaks-runner.sh --staged
# Quality: Shell script validation
shellcheck:
glob: "*.sh"
run: scripts/git-hooks/shellcheck-runner.sh {staged_files}
# Quality: YAML validation
yamllint:
glob: "*.{yml,yaml}"
run: scripts/git-hooks/yamllint-runner.sh {staged_files}
# Quality: JSON validation
jsonlint:
glob: "*.json"
run: scripts/git-hooks/jsonlint-runner.sh {staged_files}
# Quality: Markdown validation
markdownlint:
glob: "*.md"
run: scripts/git-hooks/markdownlint-runner.sh {staged_files}