Forked from codelahoma/xcode-todo-fixme-as-warning.sh
Created
November 29, 2017 13:10
-
-
Save vlaskos/840d5a24b9289596ac732404074fc13f 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