Skip to content

Instantly share code, notes, and snippets.

@wanderwaltz
Last active December 15, 2015 14:39
Show Gist options
  • Save wanderwaltz/5275653 to your computer and use it in GitHub Desktop.
Save wanderwaltz/5275653 to your computer and use it in GitHub Desktop.
Xcode shell script build step: show TODO's and FIXME's as warnings. http://deallocatedobjects.com/posts/show-todos-and-fixmes-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/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment