Findbugs与Google CodePro AnalytiX(Eclipse插件) [英] Findbugs vs Google CodePro AnalytiX (Eclipse plugins)

查看:430
本文介绍了Findbugs与Google CodePro AnalytiX(Eclipse插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用过Google CodePro AnalytiX,但我从未使用过Findbugs。

I already have used the Google CodePro AnalytiX but I never used Findbugs.

我的Findbugs的第一印象是配置更难。之后,我相信两者都是相似的。

My first impression with Findbugs is that it is harder to configure. After that, I believe that both are similar.

你的意见是什么?

还有一个问题相关:没有这些插件将我们的代码发送到服务器,对吧? (例如,如果我们使用CodePro,我们的代码不会发送到Google服务器)。

Just one more question related: None of these plugins sent our code to the servers, right? (for example, if we use CodePro our code isn't sent to Google Servers).

推荐答案

2016年更新:CodePro Analytix不再可用了,所以去Findbugs。

em>

在CodePro Analytix中更好:

better in CodePro Analytix:


  • 问题级别(错误,警告,info)可以更改每个项目。 Findbugs只能启用/禁用问题。

  • 可以详细配置许多问题(如列入黑名单的发誓单词列表)。

  • 可以显示所有在当前打开的 编辑器中的问题(并且在打开或关闭编辑器时进行调整),然后选择程序包,项目或其他任何操作更方便,然后手动触发对它们的扫描。 >
  • 可以自动修复几个问题(如声明所有参数的最终)。在Findbugs中,一切都必须手动完成。

  • Issue level (error, warning, info) can be changed for every item. Findbugs can only enable/disable issues.
  • Many issues can be configured in detail (like the list of blacklisted swear words).
  • Can show you all the issues in the currently opened editors (and adapts this when opening or closing editors), which is much more convinient then selecting packages, projects or whatever and then to manually trigger a scan on them
  • Several issues can be fixed automatically (like declaring all parameters final). In Findbugs everything must be done manually.

更好的Findbugs:

better in Findbugs:


  • 更集中于典型的 Java编程错误(但没有丰富的选择问题,如CodePro)

  • 做更多的分析需要大量的上下文信息

  • 可以在Eclipse或本地使用的集成服务器上使用,如Hudson / Jenkins上的Hudson / Jenkins

  • 配置,本地IDE可以共享,因此您可以在IDE和服务器上看到完全相同的结果

  • 具有云模式,分布式团队可以分享其发现(以及评估调查结果),以便他们不再检查相同的问题。

  • Is more concentrated on typical Java programming bugs (but does not have the rich selection of issues like CodePro)
  • does more analysises that need a lot of context information
  • can be used locally in Eclipse or on an integration server like Hudson/Jenkins
  • configuration on Hudson/Jenkins and in local IDE can be shared, so you see the exact same results in your IDE and on the server
  • has a "cloud mode", where distributed teams can share their findings (and the evaluation of the findings), so that they do not all check the same issues again

以上所有内容与您如何工作更相关用工具。错误的实际发现可能非常依赖于要检查的项目。在过去,我经常建议使用两者,Findbugs,CodePro之后

All of the above was more related to how you can work with the tool. The actual finding of bugs may depend very heavily on the project to be checked. In the past I often suggested to use both, Findbugs first, CodePro afterwards:

使用Findbugs进行第一次检查,因为它找到更多严重问题。但是经过修复,你可能会发现自己有很多嘈杂的问题(甚至是错误的发现)。因此,在对最困难的Findbugs问题进行处理之后,我建议切换到CodePro Analytix,因为它具有较少的错误发现,并可以被更详细的控制。

Do the first checks with Findbugs, as it finds the more severe issues. But after those have been fixed, you may find yourself in lots of noisy issues (or even false findings). Therefore after working on the most severe issues of Findbugs, I suggest switching to CodePro Analytix as it has less false findings and can be controlled in more detail.

这篇关于Findbugs与Google CodePro AnalytiX(Eclipse插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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