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. NodeJS -Express 4.0 用include取代partial

    在Express 4.0 下按如下方法设置: (1)运行cmd 输入:npm install express-partials -g (2)下载成功后.在app.js 中引用此插件   var par ...

  2. 团队项目之NABC

    Time:2013-10-22 Author:wang 一个成功的人,总是知道如何管理自己的时间,如何让自己的时间得到最充分最有效的利用.对学生一族而言,课业负担重,各种课程.各种活动.各种社团,如果 ...

  3. .Xresources 配置文件

    安装rxvt-unicode-256color,如果不是这个版本的话VIM配色会显示不正常. ~/.Xresources配置文件如下 !urxvt color scheme: URxvt*backgr ...

  4. Android Studio:Gradle常用命令

    Android Studio中自带Terminal,可以直接使用gradle命令,不必另开命令窗口,相当方便,下面总结一下常用的命令: 1.查看Gradle版本号      ./gradlew -v  ...

  5. Timer定时器

    try { mTimerGoOut = new Timer(); SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy-MM-dd" ...

  6. JS读取UserAgent信息并做判断

    JS读取UserAgent信息并做判断 userAgent信息可以由navigator.userAgent拿到.例子: <script type="text/javascript&qu ...

  7. java多线程为什么要用while而不是if

    对于java多线程的wait()方法,我们在jdk1.6的说明文档里可以看到这样一段话 从上面的截图,我们可以看出,在使用wait方法时,需要使用while循环来判断条件十分满足,而不是if,那么我们 ...

  8. Problem 1014 xxx游戏 暴力+拓扑排序

    题目链接: 题目 Problem 1014 xxx游戏 Time Limit: 1000 mSec Memory Limit : 32768 KB 问题描述 小M最近很喜欢玩XXX游戏.这个游戏很简单 ...

  9. C++字符串分割

    //字符串分割函数 std::vector<std::string> split(std::string str,std::string pattern) { std::string::s ...

  10. linux下cat命令详解

    简略版: cat主要有三大功能:1.一次显示整个文件.$ cat filename2.从键盘创建一个文件.$ cat > filename     只能创建新文件,不能编辑已有文件.3.将几个文 ...