[Updates] Fwd: Xcode Convert TODOs and FIXMEs to Warnings

Andrew Stone andrew at stone.com
Fri Nov 22 13:39:54 EST 2013


A cool trick for XCODE from Jeremiah

Begin forwarded message:

> From: Jeremiah Gage <gage at slyco.org>
> Subject: Xcode Convert TODOs and FIXMEs to Warnings
> Date: November 22, 2013 at 11:02:49 AM MST
> To: Andrew Stone <andrew at stone.com>
> 
> In the project settings under build phases, enter this script under run script:
> 
> KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
> 
> find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
> 
> 
> --
> Jeremiah Gage

Andrew Stone
Twitter / @twittelator
http://www.stone.com

          http://j.mp/twtl8rnu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cocoaconspiracy.com/pipermail/updates/attachments/20131122/7b7da2d3/attachment.html>


More information about the Updates mailing list