Skip to content

Instantly share code, notes, and snippets.

@stinger
Last active March 24, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stinger/9615a93f592988e376c0e9d960b8b27b to your computer and use it in GitHub Desktop.
Save stinger/9615a93f592988e376c0e9d960b8b27b to your computer and use it in GitHub Desktop.
#set the shell to /bin/sh
TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.swift" \) -type f -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