1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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' \ .