Skip to content

Instantly share code, notes, and snippets.

@netbe
Created December 2, 2013 23:11
Show Gist options
  • Save netbe/7760826 to your computer and use it in GitHub Desktop.
Save netbe/7760826 to your computer and use it in GitHub Desktop.
KEYWORDS="TODO:|FIXME:|OPTIM:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -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