1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh set -eu # shellcheck disable=2086 if [ -e .git ] && git grep FIXME ${1:-} | grep -v '^TODOs.md:' | grep -v '^aux/workflow/assert-todos.sh:' then echo "Found dangling FIXME markers on the project." >&2 echo "You should write them down properly on TODOs.md." >&2 exit 1 fi td -L