添加TODO、FIXME警告脚本

http://jeffreysambells.com/2013/01/31/generate-xcode-warnings-from-todo-comments

脚本:

TAGS="TODO:|FIXME:"

echo "searching ${SRCROOT} for ${TAGS}"

find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"

你可能感兴趣的:(添加TODO、FIXME警告脚本)