Skip to content

Instantly share code, notes, and snippets.

@codelahoma
Created October 15, 2016 19:11

Revisions

  1. codelahoma created this gist Oct 15, 2016.
    6 changes: 6 additions & 0 deletions xcode-todo-fixme-as-warning.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    TAGS="TODO:|FIXME:"
    SKIPDIRS="/Carthage"
    find "${SRCROOT}/" -type f \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 \
    | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" \
    | grep -v "$SKIPDIRS" \
    | perl -p -e "s/($TAGS)/ warning: \$1/"