Code linting for Objective C

Have a look at the LLVM/Clang Static Analyzer

The LLVM/Clang static analyzer is a standalone tool that find bugs in C and Objective-C programs and it is very early in development.

A static analyzer based on clang. The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.

Edit

Clang has now been integrated into Xcode and can easily be run as a menu option "Build & Analyse"

alt text


It's worth mentioning OCLint too. It covers some things not touched by the Clang analyser, such as:

  • Complicated code - high cyclomatic complexity and NPath complexity
  • Code smells - long method, long parameter list, redundant code

Check out the home page for more details.