Lint-checking tools for Objective-C development [c

2019-03-18 07:38发布

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?

2条回答
疯言疯语
2楼-- · 2019-03-18 07:55

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.

查看更多
叼着烟拽天下
3楼-- · 2019-03-18 07:58

I was doing the same research and I just found OCLint

查看更多
登录 后发表回答