2
我正在尋找如何配置OCLint或如何使其運行的示例。我進行了搜索,但沒有。在這裏,在堆棧溢出恰好有3有關,只是命名的圖書館和谷歌的職位只是官方OCLint.orgOCLint使用示例
的公報說,文檔:
[[email protected] ~]$ 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
並且由此產生的輸出會很大。