Alex Rivera | Logout

Lint-checking tools for Objective-C development

Asked 2011-02-16T01:01:53.440
16

Large projects with multiple developers often result in code that is inconsistent in style. I am looking for a lint-like tool tailored to Objective-C that goes beyond the scope of the Clang Static Analyser and checks for adherence to stylistic conventions; e.g. braces, indentation, comment formatting, declaring variables at the top of functions and so on.

I am aware of AnalysisTool, but it doesn't quite do what I'm after. I saw this question asked elsewhere on SO, but it's not clear whether the question-asker was after the same thing.

Does such a tool exist?

Edit
Report

1 Answer

4

I have recently stumbled across uncrustify, which has support for Objective-C. It appears well-written and adding additional checks (and respective fixes) seems straight-forward.

It's not all-in-one, but in combination with the static analyser and a good differencing tool, it should do the job.

answered 2011-02-23T04:43:11.183

Your Answer