Skip to content

Instantly share code, notes, and snippets.

@bocato
Created March 31, 2017 18:58
Show Gist options
  • Save bocato/5fb9b113fa753a6af7e7a940226c5e74 to your computer and use it in GitHub Desktop.
Save bocato/5fb9b113fa753a6af7e7a940226c5e74 to your computer and use it in GitHub Desktop.
TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -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