warn_tag_words 305 B

12345678910
  1. #!/bin/sh
  2. SRCROOT="$(git rev-parse --show-toplevel)/CutBox/CutBox/Source"
  3. TAGS="TODO|FIXME"
  4. echo "Searching ${SRCROOT} for ${TAGS}"
  5. find "${SRCROOT}" \( -name "*.swift" \) -print0 \
  6. | xargs -0 grep -E --with-filename --line-number --only-matching "($TAGS).*\$" \
  7. | perl -p -e "s/($TAGS)/ warning: \$1/"