Skip to content

Instantly share code, notes, and snippets.

@kiliankoe
Created March 11, 2016 20:17
Show Gist options
  • Save kiliankoe/1ddea7efd13e4c45bf33 to your computer and use it in GitHub Desktop.
Save kiliankoe/1ddea7efd13e4c45bf33 to your computer and use it in GitHub Desktop.
Highlight TODOs and FIXMEs in Xcode - Add this as a Run Script Phase
TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -not -path "*/Carthage/*" -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