OCLint の設定方法や実行方法の例を探していました。検索しましたが何もありません。ここStack Overflowには、関連する投稿が3つだけあり、ライブラリに名前を付けているだけで、Googleでは公式のOCLint.orgだけです
公式ドキュメントには次のように書かれています。
[user@localhost ~]$ oclint -help
OVERVIEW: OCLint, a static code analysis tool for Objective-C and related languages
USAGE: oclint [options] <input files>
OPTIONS:
-D <macro> - Predefine the specified macro
-F <directory> - Add directory to framework include search path
-I <directory> - Add directory to include search path
-R <directory> - Add directory to rule loading path
-arch <arch_name> - Specify which architecture (e.g. ppc, i386, x86_64, armv7) the compilation
should targets.
-help - Display available options (-help-hidden for more)
-include <file> - Include file before parsing
-isysroot <directory> - Add directory to SYSTEM include search path
-o <file> - Write output to <file>
-rc <paramemter>=<value> - 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 <value> - Input language type
しかし、マクロ (-D) と、-I、-F、-R にどのパスを選択するか、何を指せばよいかについて、より良い説明が必要です。コード例として
$ oclint path/to/file.m -D something -I something -F something -R something
そして、そこから期待されるアウトプットは素晴らしいものになるでしょう。