Created
October 15, 2016 19:11
-
-
Save codelahoma/715b24e0b6c885fb6629bea46f360188 to your computer and use it in GitHub Desktop.
Highlight TODO and FIXME as warnings in Xcode 8 (add as script build phase)
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
TAGS="TODO:|FIXME:" | |
SKIPDIRS="/Carthage" | |
find "${SRCROOT}/" -type f \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 \ | |
| xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" \ | |
| grep -v "$SKIPDIRS" \ | |
| perl -p -e "s/($TAGS)/ warning: \$1/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment