本文描述如何在Eclipse/MyEclipse中集成并使用Findbugs.
一、准备:
1. Requirements
To use the FindBugs Plugin for Eclipse, you need Eclipse 3.3 or later, and JRE/JDK 1.5 or later
2:下载findbugs
参考页面:
http://findbugs.sourceforge.net/manual/eclipse.html
点击下载plugin包
http://prdownloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip?download
二、集成
Extract it in Eclipse's "plugins" subdirectory. (So <eclipse_install_dir>/plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/findbugs.png should be the path to the FindBugs logo.)
CHN:
将edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821.zip解压到Eclipse安装目录下的plugins/下。
比如:E:\pro\MyEclipse\eclipse\plugins\edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821
由于我装的是MyEclipse6.0所以,我还将此文件拷贝到了E:\pro\MyEclipse\myeclipse\eclipse\plugins\edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821
也许是我的环境太乱,只将findbugs的相关文件拷贝到eclipse目录下还不行,还需要拷贝一份到myeclipse的相关目录下,
或许你不需要做这一步。
三、修改bundles.info文件
路径:E:\yangf\app\MyEclipse 8.5\configuration\org.eclipse.equinox.simpleconfigurator
最后一行增加:edu.umd.cs.findbugs.plugin.eclipse,2.0.2.20121210,file:/E:/yangf/app/MyEclipse 8.5/Common/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121210,4,false
四、启动、验证是否OK:
启动Eclipse或MyEclipse
Once the plugin is extracted, start Eclipse and choose Help → About Eclipse Platform → Plug-in Details. You should find a plugin called "FindBugs Plug-in" provided by "FindBugs Project".
CHN:
点击-->Help-->About MyEclipse Enterprise Workbench-->Plug-in Details正常的话,可以看到findbugs的信息。
五、使用:
右击Project,选择Findbugs
六、设置findbugs细节:
window-->preferences-->java-->findbugs
- 描述: 集成是否成功
- 大小: 128.7 KB
- 描述: 如何使用
- 大小: 60.8 KB
- 描述: 如何设置个性化
- 大小: 103.4 KB
- 描述: 如何使用
- 大小: 48.8 KB
分享到:
相关推荐
Eclipse集成findBugs步骤,包含:FindBugs介绍,在Eclipse中安装FindBugs插件,在Eclipse中使用FindBugs,配置FindBugs,其它分析工具(PMD,CheckStyle),配套的Bug解释模式,实际项目中Bug类型统计
Eclipse集成findBugs,一款很好用的查找BUG的插件,希望对大家有所帮助,提高代码质量!
Eclipse集成findBugs步骤.pdf
将此插件解压放到eclipse的plugin目录下,在项目中选择build.xml文件,run as ant bulid,生成的html报告在d盘
FindBugs提供了集成在Ant中使用的Ant Task,可以在自动构建与部署的时候运行FindBugs。 1. 将$FINDBUGS_HOME/lib/findbugs-ant.jar拷贝到$ANT_HOME/lib目录下以后,就完成了FindBugs的Ant Task的安装。(强烈建议使用...
包含了eclipse(MyEclipse也可用)下的pmd checkstyle findbugs插件
1. 将该文件夹拷贝到myeclipse安装目录下common/plugins目录下; 2. 修改myeclipse目录下..\MyEclipse\MyEclipse 10\configuration\org.eclipse.equinox.simpleconfigurator的bundles.info文件
1. 将该文件夹拷贝到myeclipse安装目录下common/plugins目录...2. 修改myeclipse目录下..\MyEclipse\MyEclipse *\configuration\org.eclipse.equinox.simpleconfigurator的bundles.info文件(*为通配符 11,12,13,14)
NULL 博文链接:https://knight-black-bob.iteye.com/blog/2330285
myeclipse 和 eclipse 集成插件
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
eclipse-java-indigo-SR2-win32 ,3.7,集成findbugs pmd checkstyle
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
eclipse 集成多种插件:findbugs, pmd, checkstyle, easy explorer, 反编译插件等
SonarQube 是一款用于代码质量管理的开源工具,它主要用于管理源代码的质量。 通过插件形式,可以支持众多计算机语言,比如 ...同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar
整合Sonarqube+jenkins 搭建开源持续集成环境。Sonarqube一款很实用的代码检查工具,包括findbugs、chechstyle、编码规范等等。还可以集合eclipse进行代码检查
与持续集成工具(例如 Hudson/Jenkins 等)不同,Sonar 并不是简单地把不同的代码检查工具结果(例如 FindBugs,PMD 等)直接显示在 Web 页面上,而是通过不同的插件对这些结果进行再加工处理,通过量化的方式度量...