findbugs可以说在开发过程中不可缺少的插件。
他可以找到代码缺陷以及各种bug隐患,帮助发现问题,提高软件的质量。之前公司代码上库,总是编译不过,后来从gerrit中发现是findbugs有警告,不得不佩服公司环境很完美,严格,因此质量就不用说了,那肯定是好。
因此这里简单写下他的安装。
步骤其实很简单,参考地址: http://findbugs.cs.umd.edu/eclipse/
To install the FindBugs plugin:
- 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
- "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.
在项目右键,选择就OK。