Skip to content

Instantly share code, notes, and snippets.

@shenglinFL
Created October 22, 2018 10:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shenglinFL/5f87e77e4d1faa0cd8032c4f4a3f25f7 to your computer and use it in GitHub Desktop.
Save shenglinFL/5f87e77e4d1faa0cd8032c4f4a3f25f7 to your computer and use it in GitHub Desktop.
Xcode显示FIXME|TODO等标注
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment