Skip to content

Instantly share code, notes, and snippets.

@gravicle
Forked from pala/RunScript
Last active January 4, 2017 01:41
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 gravicle/3c284086a7c341110e985c323f12c48d to your computer and use it in GitHub Desktop.
Save gravicle/3c284086a7c341110e985c323f12c48d to your computer and use it in GitHub Desktop.
Show TODO's And FIXME's As Warnings
TAGS="FIXME:|TODO:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment