mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 18:55:49 +00:00
* chore: add suspicious_patterns to .scripts/pre-hook and not-suspicious filter * rm: kill annoying checkpatterns job * chore: cleanup --------- Co-authored-by: RichardAH <richard.holland@starstone.co.nz>
13 lines
324 B
Bash
Executable File
13 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Pre-commit hook that runs the suspicious patterns check on staged files
|
|
|
|
# Get the repository's root directory
|
|
repo_root=$(git rev-parse --show-toplevel)
|
|
|
|
# Run the suspicious patterns script in pre-commit mode
|
|
"$repo_root/suspicious_patterns.sh" --pre-commit
|
|
|
|
# Exit with the same code as the script
|
|
exit $?
|