Files
cleveragents-core/scripts/run-semgrep.sh
T
brent.edwards 7ef5ebb695 feat: Add Q0: Pre-commit hooks setup.
This should automatically check for problems on build.
2026-02-10 16:04:17 +00:00

8 lines
247 B
Bash
Executable File

#!/bin/sh
# Run semgrep if installed, skip gracefully if not
if command -v semgrep >/dev/null 2>&1; then
semgrep --config=.semgrep.yml --error --quiet src/
else
echo "semgrep not installed, skipping (install with: pip install semgrep)"
fi