Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Make TODO and FIXME into Warnings
TAGS="TODO:|FIXME:|\/\/TODO"
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