Last active
February 23, 2018 13:22
-
-
Save StanislavK/142bf5859b056c55b55499d930e4f9ad to your computer and use it in GitHub Desktop.
Make TODO: + FIXME: + WARNING: as warnings, ERROR: as error
This file contains 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:|WARNING:" | |
ERRORTAG="ERROR:" | |
find "${SRCROOT}" \( -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