Skip to content

Instantly share code, notes, and snippets.

@leilee
Created June 14, 2017 12:04
Show Gist options
  • Save leilee/d9fed9a79e6e2f8f8665c566950377df to your computer and use it in GitHub Desktop.
Save leilee/d9fed9a79e6e2f8f8665c566950377df to your computer and use it in GitHub Desktop.
Marking TODO's, FIXME's With A Legit Xcode Warning
TAGS="TODO:|FIXME:"
find "${SRCROOT}" -not -path "${SRCROOT}/Pods/*" \( -name "*.h" -or -name "*.m" -or -name "*.swift" -type f \) -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