Last active
April 16, 2018 08:39
-
-
Save tristandl/52a02f857f8c2508d983f3e864f663cb to your computer and use it in GitHub Desktop.
# Highlights TODO: and FIXME: comments but ignores any comments from 3rd party Pods. Thanks to Hector Matos https://krakendev.io/blog/generating-warnings-in-xcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAGS="TODO:|FIXME:" | |
ERRORTAG="ERROR:" | |
find "${SRCROOT}" -path "${SRCROOT}"/Pods -prune -o -path "${SRCROOT}"/vendor -prune -o \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment