File: forbid

package info (click to toggle)
rust-just 1.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,196 kB
  • sloc: sh: 300; makefile: 6
file content (15 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (2)
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' \
  .