Created
February 15, 2014 15:43
-
-
Save steipete/9021032 to your computer and use it in GitHub Desktop.
Run Script that converts TODO or FIXME or ??? into a warning. Super useful.
This file contains hidden or 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
If you are using CocoaPods you could do something like this:
From http://matthewmorey.com/improved-xcode-build-phases/.
Problem is, not all source files in a project are in
${SRCROOT}
.