Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2012 11:48
Show Gist options
  • Save anonymous/4294066 to your computer and use it in GitHub Desktop.
Save anonymous/4294066 to your computer and use it in GitHub Desktop.
Make Xcode nag you about unfinished TODOs
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