Skip to content

Instantly share code, notes, and snippets.

@jhildensperger
Last active December 31, 2015 21:09
Show Gist options
  • Save jhildensperger/8045218 to your computer and use it in GitHub Desktop.
Save jhildensperger/8045218 to your computer and use it in GitHub Desktop.
Show TODO and FIXME as warnings from pre-build script
# Show TODO and FIXME as warnings
# ===============================
KEYWORDS="TODO|FIXME|\?\?\?:|\!\!\!:"
find "${SRCROOT}/${PROJECT_NAME}" "${SRCROOT}/${PROJECT_NAME}Tests" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment