Skip to content

Instantly share code, notes, and snippets.

@ManWithBear
Created October 24, 2016 11:34
Show Gist options
  • Save ManWithBear/65b61d5e9d980557005adac51bd0ecbf to your computer and use it in GitHub Desktop.
Save ManWithBear/65b61d5e9d980557005adac51bd0ecbf to your computer and use it in GitHub Desktop.
Create warnings for specified marks ("TODO:" and "FIXME:")
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