查找找到各种隐形bug的Xcode辅助工具:Faux Pas
jopen
10年前
Faux Pas是一个Xcode辅助工具,用以检查Xcode项目,找出常见的错误、隐藏的bug、不良实践以及可维护性问题和风格问题。
Faux Pas并不仅仅着眼于你的代码,它可以检测Xcode项目中的所有元素存在的潜在问题。

Faux Pas功能亮点如下:
控制潜在的bug

查找资源文件的错误
你能确保你的文件名参数没有问题?你是否在重命名文件后更新了所有相关的代码?Faux Pas包含12种不同的规则来检测与资源文件用法相关的错误。

查找本地化的错误
Faux Pas包含10种不同的规则来检测本地化错误。

查找版本控制的错误
你的项目引用了版本控制根之外的文件吗?或者引用了一个VCS忽略的文件?Faux Pas有4种不同的规则来检查版本控制错误。

学习和实施最佳实践
对于经验成熟的iOS/Mac开发者来说,Faux Pas也是十分有用的,但尤其适用于新入门的开发者。

执行代码风格
你想在任何可能的时候使用点语法吗?或者使用 @property 进行属性声明?Faux Pas自带12种不同的规则来帮你执行风格上的约束。

获得代码审查清单
你审查或者接管现有的代码库吗?针对你可能想关注的问题,Faux Pas将会给你一个很好内容概览。

从92种不同的规则中挑选
Faux Pas带有92种规则,使用Resources、Style或者Config这类tag进行分类。你可以选择你想使用的规则,并根据自己的偏好进行配置。

使用GUI或者CLI
Faux Pas有一个图形用户界面和一个命令行界面。

在Xcode构建过程中运行
在Xcode中,可在Run Script构建阶段调用Faux Pas,并在Xcode的Issue Navigator中查看问题诊断。

连接外部工具
Faux Pas可以以JSON、XML或者Property List 形式输出诊断。使用自定义脚本以你喜欢的方式进行处理。

配置
通过tag选择规则,并排除个别规则。设定通用和规则特有的选项。保存成JSON 或者Property List形式的配置文件。

在最喜欢的编辑器中打开链接
Faux Pas可以在当前几个流行的编辑器中打开文件。

内容介绍来自:http://www.cocoachina.com/applenews/devnews/2014/0804/9307.html
</div>