views:

56

answers:

2

Hi all,

I am looking for coding standard checker something like php_codesniffer (http://pear.php.net/manual/en/package.php.php-codesniffer.intro.php) for objective c.

Thanks, Jose Antony

A: 

The LLVM static analyzer is your answer.

In Xcode, you can use the build and analyze feature.

If you want to invoke it manually, see this LLVM web page.

bbum
LLVM is not exactly the solution that I am looking for. LLVM is not capable of identifying problems in coding standars such trailing space. 2 tabs used instead of 1 tab. missing doc block. using "if(" instead of "if (" On such tool for CPP is http://www.inspirel.com/vera/ce/demo.html
Jose Antony
Makes sense -- Cation's answer is likely much more inline w/your needs.
bbum
+1  A: 

Maybe check out Uncrustify, there is also a fork with better Objective-C support. If you want to integrate uncrustify into xcode, read the blog post: Adding a code beautifier script to Xcode

catlan