Skip to content

Instantly share code, notes, and snippets.

@samiare
Created December 16, 2020 20:49
Show Gist options
  • Save samiare/ea17b95e2eb5b30e53cbfb094de70638 to your computer and use it in GitHub Desktop.
Save samiare/ea17b95e2eb5b30e53cbfb094de70638 to your computer and use it in GitHub Desktop.
Finds TODO and FIXME tags and displays them as warnings in the buildtime issue navigator.
TAGS="TODO:|FIXME:"
echo "searching ${SRCROOT} for ${TAGS}"
find "${SRCROOT}" \( -name "*.swift" \) -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