Skip to content

Instantly share code, notes, and snippets.

@Briahas
Created September 13, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Briahas/ca485764bbd112a41f2cb75890b5eb33 to your computer and use it in GitHub Desktop.
Save Briahas/ca485764bbd112a41f2cb75890b5eb33 to your computer and use it in GitHub Desktop.
KEYWORDS="TODO|FIXME|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.swift" \) -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