Skip to content

Instantly share code, notes, and snippets.

@lukewakeford
Last active August 29, 2015 14:15
Show Gist options
  • Save lukewakeford/bb94b63bef85e5fb0830 to your computer and use it in GitHub Desktop.
Save lukewakeford/bb94b63bef85e5fb0830 to your computer and use it in GitHub Desktop.
Swift Todo Warnings 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