Skip to content

Instantly share code, notes, and snippets.

@aratkevich
Created April 11, 2017 06:51
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 aratkevich/273daf30c40555d8cd21e8847df27113 to your computer and use it in GitHub Desktop.
Save aratkevich/273daf30c40555d8cd21e8847df27113 to your computer and use it in GitHub Desktop.
Скрипт TODO: FIXME:
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