Eclipse -  FindBugs Plugin 的安装和使用

FindBugs is a static analysis tool that examines the classes in search of potential problems during development, providing a powerful code auditing feature. It analyzes the bytecode to identify the familiar patterns. It is not limited to perform search using regular expressions, it tries to understand what the program wants to do. 
FindBugs 是一款静态的分析工具,它具有了强大的代码审查功能,可以检查所有的类以发现在开发阶段潜在的一些问题。它通过分析字节码识别相似的样式。它并不局限与使用正则表达式进行搜索,它还试图理解程序的所实现的功能。

安装插件


FindBugs is a plugin compatible with Eclipse versions 3.x: (3.0, 3.1, 3.2, ...). 
If you have already installed a previous version of FindBugs (before May 2006), then delete this version: 
Simply delete the de.tobject.findbugs_0.0.n folder located in the plugins directory of Eclipse. 
Verify that the JAVA_HOME environment variable is present.

To install the FindBugs plug-in, follow these steps:

      In Eclipse, click Help/Software Update/Find and Install ...

    

    Choose the option "Search for new features to install" and click Next.

    

    Click on New Remote Site.

    

  Fill the following fields:

    Name: FindBugs update site

    URL: enter the following: (note: no slash at the end of the url)

    For official releases: http://findbugs.cs.umd.edu/eclipse

    For official releases and candidates release:http://findbugs.cs.umd.edu/eclipse-candidate

    For all versions:http://findbugs.cs.umd.edu/eclipse-daily

    

  Then click OK.

  "FindBugs update site" should appear in the list "Sites to include in search".

  Select the checkbox "FindBugs update site", then click "Finish".

    

    "FindBugs Feature" would then appear under "Select features to install".

    

    Select the checkbox and click "next".

    Select the "I accept" to accept the license and click "Next."

    

    Make sure that the installation directory is correct. Then click Finish.

    

    Restart Eclipse.

插件的使用

    The FindBugs Window 
    Click on Window/Show View/Other /Bug Explorer 

                    

The " Bug Explorer" and "Bug Details" windows should appear . 

查看 bugs

   Select projects, packages, or classes that you want to check, right-click and choose Find Bugs.
    

    The bugs found by FindBugs appear in the Bug Explorer window.

    

Eclipse - FindBugs Plugin 的安装和使用的更多相关文章

  1. eclipse maven plugin 插件 安装 和 配置

      离线插件 点击下载离线安装包:eclipse-maven-plugin.zip ( for eclipse helios or higher ) .解压缩到任意目录(如这里的plugins目录): ...

  2. Eclipse FindBugs的安装

    原文:http://blog.sina.com.cn/s/blog_62186b460100l3mx.html 1安装:首先到官方网站下载最新版本FindBugs    http://findbugs ...

  3. Java静态代码分析工具——FindBugs插件的安装与使用

    1 什么是FindBugs FindBugs 是一个静态分析工具,它检查类或者 JAR 文件,将字节码与一组缺陷模式进行对比以发现可能的问题.有了静态分析工具,就可以在不实际运行程序的情况对软件进行分 ...

  4. eclipse常用插件在线安装地址或下载地址

    本文转载自:http://my.oschina.net/bloghu/blog/198922 一,反编译插件: A.Jadclipse 1.打开eclipse增加站点:http://jadclipse ...

  5. Eclipse常用的插件安装

    嫌公司用的eclipse不爽,准备自己弄一个,diy的,没想到装插得烦死人. 诱惑人的“常用插件”: (1)    AmaterasUML        介绍:Eclipse的UML插件,支持UML活 ...

  6. 【转载】eclipse常用插件在线安装地址或下载地址

    一,反编译插件: A.Jadclipse 1.打开eclipse增加站点:http://jadclipse.sf.net/update,在线安装好JDT Decompiler 3.4.0 2.http ...

  7. FindBugs插件的安装与使用

    转载:http://www.cnblogs.com/kayfans/archive/2012/06/18/2554022.html 1 什么是FindBugs FindBugs 是一个静态分析工具,它 ...

  8. 分享一下 Eclipse 插件 PyDev 的安装

    想趁暑假学习一下python,学好语言好的开发环境是基础.因为安装有eclipse,所以想安装PyDev插件作为python开发环境.本来以为是一件简单的事情,结果整整弄了一下午各种装不上,度娘上的几 ...

  9. Eclipse RCP /Plugin移除Search对话框

    RCP:如何移除Search对话框中不需要的项 2013-08-18 22:31 by Binhua Liu, 231 阅读, 0 评论, 收藏, 编辑 前言 很久没写文章了,准备写一系列关于Ecli ...

随机推荐

  1. MYSQL创建多张表,相同表结构,不同表名

    #!/bin/bashfor i in {0..63}domysql -u$1 -p$2 -h127.0.0.1 <<EOFuse yoon;create table ivc_pre_de ...

  2. java 接口(基础思想一)

    我想,对于各位使用面向对象编程语言的程序员来说,“接口”这个名词一定不陌生,但是不知各位有没有这样的疑惑:接口有什么用途?它和抽象类有什么区别?能不能用抽象类代替接口呢?而且,作为程序员,一定经常听到 ...

  3. Mysql 实例分析连接

    表A记录如下: aID        aNum 1           a20050111 2           a20050112 3           a20050113 4          ...

  4. windows2003通过iis配置ftp服务器

    以前习惯于用filezilla作为windows的ftp服务器,但是现在新版本的filezilla已经不支持windows2003了,所以趁机试一下iis配置ftp服务器. 前面都是很常规的配置 参考 ...

  5. 如何在cocos2dx lua的回调函数里面用self

    回调里的self是另一个不同的东西了,通常是触发回调的对象,或_G或nil ,视情况而定 我的 print(self) 输出 userdata function MyClass:sayFromCall ...

  6. openmeetings 视频会议系统介绍

    在功能上,视频会议具有如下特点(这一部分转自:http://www.kissthink.com/archive/5150.html): 1.该方基于P2P技术,服务器压力小.流畅.用户之间可以互相获取 ...

  7. 父<IFRAME>获取子页属性以及子页中<IFRAME>的方法

    例子如下: 1.父页index.jsp <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "ht ...

  8. hibernate中文乱码问题

    在学习hibernate的过程中,发现在往mysql数据库中插入数据的时候会报错. <property name="hibernate.connection.url"> ...

  9. H5下拉刷新特效demo,动画流畅

    <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...

  10. 【BZOJ】【2879】【NOI2012】美食节

    网络流/费用流 跟 BZOJ 1070 修车 几乎是一道题,只是这题“要修的车”(即菜)多了很多……几乎是从$n$变成了$n^2$,所以建图的时候就得动态加点…… 也就是说,当一个厨师已经确定了他的后 ...