Skip to content

Instantly share code, notes, and snippets.

@anjerodesu
Last active May 25, 2016 03:33
Show Gist options
  • Save anjerodesu/9226783 to your computer and use it in GitHub Desktop.
Save anjerodesu/9226783 to your computer and use it in GitHub Desktop.
Run Script that converts certain keywords into a shell warning.
KEYWORDS="TODO:|FIXME:|REMINDER:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -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