Forked from codelahoma/xcode-todo-fixme-as-warning.sh
Last active
October 16, 2017 10:05
-
-
Save vinhnx/fc4bc0ff97943713d87bcd0736d9dfd8 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 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
TAGS="TODO:|FIXME:" | |
SKIPDIRS="/Pods" | |
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