Don’t underestimate grep-based code scanning
Don't use grep. Use ag[0], which is specifically designed for searching code. It's <i>much</i> faster, honors .gitignore, and the output can be piped back through grep if you like.<p><pre><code>    ag FooBar | grep -v Baz
</code></pre>
It's in brew/apt/yum etc as `the_silver_searcher` (although brew install ag works fine too).<p>0: <a href="https://github.com/ggreer/the_silver_searcher" rel="nofollow">https://github.com/ggreer/the_silver_searcher</a>