Skip to content

Instantly share code, notes, and snippets.

@ss-abramchuk
Last active February 5, 2017 10:09
Show Gist options
  • Save ss-abramchuk/ec0967c918ed80c8a101 to your computer and use it in GitHub Desktop.
Save ss-abramchuk/ec0967c918ed80c8a101 to your computer and use it in GitHub Desktop.
TAGS="TODO:|FIXME:|\?\?\?|\!\!\!"
ERRORTAG="ERROR:"
find "${SRCROOT}/${TARGET_NAME}" \( -name "*.h" -or -name "*.mm" -or -name "*.m" -or -name "*.swift" \) ! -path "*/Vendors/*" -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