Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. TAGS="TODO:|FIXME:"
  2. 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/"
  3.  
  4. //You have to change the property `"${PROJECT_DIR}/${PROJECT_NAME}"` to conform with your project setup.
  5. //To track OBJC files change the `\( -name "*.swift" \)` to `( -name "*.h" -or -name "*.m" -or -name "*.swift" \)`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement