Skip to content

Instantly share code, notes, and snippets.

@mwahlig
Created November 21, 2014 06:18
Show Gist options
  • Save mwahlig/605ddf895bb56e2e511f to your computer and use it in GitHub Desktop.
Save mwahlig/605ddf895bb56e2e511f to your computer and use it in GitHub Desktop.
Script to turn TODO/FIXME into warnings in Xcode
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
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