just/bin/forbid
2025-03-01 22:13:16 +00:00

15 lines
283 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if ! which rg > /dev/null; then
echo 'error: `rg` not found, please install ripgrep: https://github.com/BurntSushi/ripgrep/'
exit 1
fi
! rg \
--glob !CHANGELOG.md \
--glob !bin/forbid \
--ignore-case \
'dbg!|fixme|todo|xxx' \
.