Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2016 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/0d8e9ffb243ce53de542686e404302f8 to your computer and use it in GitHub Desktop.
Save anonymous/0d8e9ffb243ce53de542686e404302f8 to your computer and use it in GitHub Desktop.
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