Skip to content

Instantly share code, notes, and snippets.

@niklassaers
Created October 13, 2015 05:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niklassaers/f18eabb67f3547573064 to your computer and use it in GitHub Desktop.
Save niklassaers/f18eabb67f3547573064 to your computer and use it in GitHub Desktop.
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