Commit Graph

6 Commits

Author SHA1 Message Date
dc577473aa Add duplicate code detection to pre-commit hook
Uses jscpd to detect code clones in shell scripts.
Blocks commit if duplication exceeds 5% threshold.
Suggests extracting common code to scripts/lib/common.sh.
2025-12-11 17:31:47 +01:00
3768cb6c0e fix: improve pre-commit hook to avoid formatting loop
- Auto-fix with shfmt on staged files
- Run shellcheck validation directly instead of full shell_check.sh
- Avoids shfmt -d validation after auto-formatting (prevents .orig file loop)
- Ensures consistent formatting without blocking commits
2025-11-16 21:20:23 +01:00
bf7bebbfef refactor: remove all skip-fmt flags and enforce all checks always 2025-11-16 20:55:39 +01:00
540a1bedab fix: format pre-commit hook and root_bl9000.sh with shfmt 2025-11-16 20:48:41 +01:00
2b83adb0f6 feat: add auto-fix to pre-commit hook with --skip-fmt option 2025-11-16 20:40:34 +01:00
d19bb5915a chore: enforce shell_check via tracked pre-commit hook 2025-11-01 16:02:58 +01:00