2
OCLint를 설정하는 방법이나 실행 방법에 대한 예제를 찾고있었습니다. 나는 아무것도 찾지 못했다.OCLint 사용 예
[[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에 대한 더 나은 설명을 싶습니다 여기에 스택 오버플로에서 단지 라이브러리 이름을 지정하고 구글에 관련 불과 3 게시물이 단지 공식 OCLint.org
공식 주제 문서를 말한다), 그리고 -I, -F, -R을 위해 선택할 경로와 무엇을 가리켜 야 하는가? 그 기대
$ oclint path/to/file.m -D something -I something -F something -R something
그리고 출력과 같은 코드 예제는 좋은 것입니다.