Lint-checking tools for Objective-C development [closed]

强颜欢笑 提交于 2019-12-03 17:06:48

问题


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?


回答1:


I was doing the same research and I just found OCLint




回答2:


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.



来源:https://stackoverflow.com/questions/5011416/lint-checking-tools-for-objective-c-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!