Skip to content

Instantly share code, notes, and snippets.

@pala
Created February 3, 2012 20:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pala/1732093 to your computer and use it in GitHub Desktop.
Save pala/1732093 to your computer and use it in GitHub Desktop.
Show TODO's And FIXME's As Warnings In Xcode 4
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/"
//via http://deallocatedobjects.com/posts/show-todos-and-fixmes-as-warnings-in-xcode-4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment