Skip to content

Instantly share code, notes, and snippets.

@elmoswelt
Created May 21, 2015 11:39
Show Gist options
  • Save elmoswelt/82bed0f546bc4c16d544 to your computer and use it in GitHub Desktop.
Save elmoswelt/82bed0f546bc4c16d544 to your computer and use it in GitHub Desktop.
Treat FIXME and TODO as warnings.
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment