Skip to content

Instantly share code, notes, and snippets.

@tsraveling
Created July 20, 2017 15:45
Show Gist options
  • Save tsraveling/836b77f5b44ee1157f21ebe2601387c6 to your computer and use it in GitHub Desktop.
Save tsraveling/836b77f5b44ee1157f21ebe2601387c6 to your computer and use it in GitHub Desktop.
TODO Xcode Run Script
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/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment