-
-
Save dominika-czarnecka/56f46045aebbd6042d12eda9acf80e62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script to make TODO as Warning | |
if [ "${CONFIGURATION}" = "Debug" ] | |
then | |
#TAGS are keywords to make line as warning | |
TAGS="TODO:|FIX:" | |
echo "searching ${SRCROOT} for ${TAGS}" | |
find "${SRCROOT}" \( -name "*.swift" \) -not -path "./Pods/*" -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment