check-todos
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5# Brackets are used around characters so these don't show up in normal search.
6pattern='tod[o]!|FIXM[E]'
7result=$(git grep --no-color --ignore-case --line-number --extended-regexp -e $pattern -- \
8 ':(exclude).github/workflows/ci.yml' \
9 ':(exclude)*criteria.md' \
10 ':(exclude)*prompt.md' || true)
11if [[ -n "${result}" ]]; then
12 echo "${result}"
13 exit 1
14fi