作者:百脑汇_惠州店_909 | 来源:互联网 | 2023-10-10 15:06
本文由编程笔记#小编为大家整理,主要介绍了sh 构建阶段脚本 - TODO和FIXME。相关的知识,希望对你有一定的参考价值。
TAGS="TODO:|FIXME:"
find "${PROJECT_DIR}/${PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
//You have to change the property `"${PROJECT_DIR}/${PROJECT_NAME}"` to conform with your project setup.
//To track OBJC files change the `\( -name "*.swift" \)` to `( -name "*.h" -or -name "*.m" -or -name "*.swift" \)`