Java静态代码分析工具——FindBugs插件的安装与使用
1 什么是FindBugs
2 如何安装FindBugs?
3如何使用FindBugs
FindBugs 网站http://findbugs.sourceforge.net/bugDescriptions.html提供了完整的类型清单。
- In Eclipse, click on Help -> Software Update -> Find and Install…
- Choose the Search for new features to install option, and click Next.
- Click New Remote Site.
- Enter the following:
- Name: FindBugs update site
-
URL: one of the following (note: no final slash on the url)
- http://findbugs.cs.umd.edu/eclipse for official releases
- http://findbugs.cs.umd.edu/eclipse-candidate for candidate releases and official releases
- http://findbugs.cs.umd.edu/eclipse-daily for all releases, including developmental ones
and click OK.
- “FindBugs update site” should appear under Sites to include in search.
Click the checkbox next to it to select it, and click Finish. - You should see FindBugs Feature under Select features to install.
(You may have to click on one or two triangles to make it visible in the tree.)
Select the checkbox next to it and click next. - Select the I accept option to accept the license and click Next.
- Make sure the location is correct where you\’re installing it. The default (your workspace) should be fine. Click Finish.
- The plugin is not digitally signed. Go ahead and install it anyway.
- Click Yes to make Eclipse restart itself.
它是干嘛的?
哪里下载?
如何安装?
copy到eclipse的plugin目录中去;
怎么用?
(eclipse 左下角)
找出的bug有3中颜色, 黑色的臭虫标志是分类, 红色的臭虫表示严重bug发现后必须修改代码,橘黄色的臭虫表示潜在警告性bug 尽量修改。(附录是各种bug的解释及修改方案,请大家按附表参考修改)
参考资料
所有插件都必须配置在这个文件里才可以使用,这个文件的格式是
通过MyEclipse Configuration Center在线安装
1. 打开MyEclipse10,在菜单栏选择MyEclipse→MyEclipse Configuration Center,即可进入到MyEclipse Configuration Center。
2. 在MyEclipse Configuration Center界面中点击Software选项卡,在Software界面中点击add site,在弹出框输入信息
Name : SVN
URL : http://subclipse.tigris.org/update_1.8.x
3. 等待一段时间,MyEclipse Configuration Center界面右上角会出现 Apply change,点击即可完成安装。