Last active
December 15, 2015 14:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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