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. ccache高速编译工具

    ccache的主页:http://ccache.samba.org distcc的主页:http://distcc.samba.org 1.背景: 在处理一些规模相对较大的工程时,编译花费的时间可能会 ...

  2. 【jquery】 API讲解 内部培训资料

    资料在百度云盘 一.jquery  API讲解 1.jquery  api如何使用 jquery  api http://www.hemin.cn/jq/ 2.常用api讲解 选择器: 通过$()获取 ...

  3. 注册微信小程序

    注册微信小程序 小程序是一种新的开放能力,可以在微信内被便捷地获取和传播,同时具有出色的使用体验.开发者可以根据平台提供的能力,快速地开发一个小程序. 开放内容包括: 开放注册范围:企业.政府.媒体. ...

  4. iOS刷新第三方MJRefresh的基本使用

    iOS开发中最好用的刷新第三方框架 MJRefresh GitHub : https://github.com/CoderMJLee/MJRefresh UIRefreshControl的介绍 1,U ...

  5. 关于json的知识整理

    一.什么是json JSON:JavaScript 对象表示法(JavaScript Object Notation). JSON 是存储和交换文本信息的语法.类似 XML,但JSON 比 XML 更 ...

  6. matlab中函数fscanf

    matlab中函数fscanf matlab中函数fscanf在文件读取方面的实例如下: 从文件中有格式地读数据 fscanf 语法1:[a,count]=fscanf(fid,format,size ...

  7. Asp.net MVC 自定义路由在IIS7以上,提示Page Not Found 解决方法

    受限确保自定义路由在开发服务器上Ok! 然后在web.config的<webserver>节点下增加如下配置就好了.   1: <system.webServer> 2: &l ...

  8. 【设计模式六大原则3】依赖倒置原则(Dependence Inversion Principle)

      定义:高层模块不应该依赖低层模块,二者都应该依赖其抽象:抽象不应该依赖细节:细节应该依赖抽象. 问题由来:类A直接依赖类B,假如要将类A改为依赖类C,则必须通过修改类A的代码来达成.这种场景下,类 ...

  9. hdoj 1879 继续畅通工程

    继续畅通工程 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Sub ...

  10. Fragment (一)

      1,简介 Fragement(碎片)允许将Activity拆分成多个完全独立封装的可重用组件,每个组件有它自己的生命周期和UI布局,由此可见,Fragement依赖于Activity,它的生命周期 ...