Created
March 9, 2016 01:43
-
-
Save gdavis/c51944e256fc4b834d6d to your computer and use it in GitHub Desktop.
Xcode Run Script that highlights TODO, FIXME and more as warnings.
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" -or -name "*.swift" \) -print0 | \ | |
| xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | \ | |
| perl -p -e "s/($KEYWORDS)/ warning: \$1/" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add as a Run Script in Xcode.