Note that there are some explanatory texts on larger screens.

plurals
  1. POOCLint usage example
    text
    copied!<p>I was looking for an example on how to config OCLint or how to get it running. I made a search but nothing. Here at Stack Overflow there are just 3 posts related, just naming the library and on google just the official <a href="http://OCLint.org" rel="nofollow">OCLint.org</a></p> <p>The oficial docs says:</p> <pre><code>[user@localhost ~]$ oclint -help OVERVIEW: OCLint, a static code analysis tool for Objective-C and related languages USAGE: oclint [options] &lt;input files&gt; OPTIONS: -D &lt;macro&gt; - Predefine the specified macro -F &lt;directory&gt; - Add directory to framework include search path -I &lt;directory&gt; - Add directory to include search path -R &lt;directory&gt; - Add directory to rule loading path -arch &lt;arch_name&gt; - Specify which architecture (e.g. ppc, i386, x86_64, armv7) the compilation should targets. -help - Display available options (-help-hidden for more) -include &lt;file&gt; - Include file before parsing -isysroot &lt;directory&gt; - Add directory to SYSTEM include search path -o &lt;file&gt; - Write output to &lt;file&gt; -rc &lt;paramemter&gt;=&lt;value&gt; - Change the baheviour of rules -stats - Enable statistics output from program Choose report type: -text - Plain text report -html - HTML formatted report -version - Display the version of this program -x &lt;value&gt; - Input language type </code></pre> <p>But I would like a better explanation about macro (-D), and which path to choose for -I, -F, -R and what should I point at. A code example as</p> <pre><code>$ oclint path/to/file.m -D something -I something -F something -R something </code></pre> <p>And the output expected from that would be great.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload