用于Objective-C开发的Lint检查工具 [英] Lint-checking tools for Objective-C development

查看:157
本文介绍了用于Objective-C开发的Lint检查工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有多个开发人员的大型项目通常会导致风格不一致的代码。我正在寻找一个适用于Objective-C的 lint 类似工具,超出了Clang的范围静态分析工具,并检查是否遵守风格惯例;例如大括号,缩进,注释格式,在函数顶部声明变量等。

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.

我知道 AnalysisTool ,但它不完全符合我的要求。我在其他地方看到问题,但不清楚问题提问者是否

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.

这个工具是否存在?

推荐答案

我最近偶然发现 uncrustify ,它支持Objective-C。它看起来很好,增加了额外的检查(和相应的修复)似乎很直接。

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.

这篇关于用于Objective-C开发的Lint检查工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆