Forked from anonymous/Xcode - Warnings for TODO and FIXME
Created
December 14, 2016 18:47
-
-
Save eugenpirogoff/44fd5c5f390c66ce0e63908040ac790a to your computer and use it in GitHub Desktop.
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
if [ "${CONFIGURATION}" = "Debug" ]; then | |
TAGS="TODO:|FIXME:" | |
echo "searching ${SRCROOT} for ${TAGS}" | |
find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment