Skip to content

Instantly share code, notes, and snippets.

@munirwanis
Created January 12, 2018 20:38
Show Gist options
  • Save munirwanis/1ea10b4a10f5d93fcc0a0ed38fe0c6b0 to your computer and use it in GitHub Desktop.
Save munirwanis/1ea10b4a10f5d93fcc0a0ed38fe0c6b0 to your computer and use it in GitHub Desktop.
Show warnings on Xcode
TAGS="TODO:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -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