简体   繁体   English

如何从Eclipse findbugs插件导出findbugs结果?

[英]How to export findbugs results from Eclipse findbugs plugin?

I have findbugs plugin for eclipse which when run on my project will show results in Bugs explorer clubbed by the type of bug. 我有一个针对eclipse的findbugs插件,当我的项目运行时会显示Bugs explorer的结果由于bug的类型。

I need to be able to do two things: 我需要做两件事:

  • Export all these to excel sheet 将所有这些导出到Excel工作表
  • Find out the bugs reported in a set of files (and be able to do it recursively w/o running for whole project and exporting and finding out the classes to be modified. 找出一组文件中报告的错误(并且能够以递归方式执行,无需为整个项目运行,并导出和查找要修改的类。

Any suggestions? 有什么建议?

FYI, I am using MyEclipse v 6.0.1 and FindBugs 1.3.4 仅供参考,我使用的是MyEclipse v 6.0.1和FindBugs 1.3.4

Findbugs dumps its results into an XML file in your workspace's .metadata folder. Findbugs将其结果转储到工作区的.metadata文件夹中的XML文件中。 Look for the subfolder that's named something like findbugs. 查找名为findbugs的子文件夹。

You can also download a standalone version of Findbugs that will save the results wherever you like. 您还可以下载独立版本的Findbugs,它可以将结果保存在您喜欢的任何位置。

Once you have the results file, you might be able to import from XML to Excel and filter there. 获得结果文件后,您可以从XML导入Excel并在那里进行过滤。 Alternatively, you can use XSLT to transform to several CSV files and open them in Excel. 或者,您可以使用XSLT转换为多个CSV文件并在Excel中打开它们。

I had the same problem with findbugs some versions ago. 在某些版本之前,我遇到了与findbugs相同的问题。

I updated the plugin today to version 1.3.8 and found out that you can now export and even import reports as XML directly. 我今天将插件更新到版本1.3.8,并发现您现在可以直接导出甚至导入报告作为XML。

All you have to do is right-click on a project either in the package explorer or in the findbugs "Bug explorer" and select "Findbugs->Save XML" or "Findbugs->Load XML". 您所要做的就是右键单击包浏览器或findbugs“Bug explorer”中的项目,然后选择“Findbugs-> Save XML”或“Findbugs-> Load XML”。

Finely a proper export and import functionality for a fantastic tool. 精确的导出和导入功能是一个梦幻般的工具。

Btw, I use Eclipse 3.3.2. 顺便说一下,我使用的是Eclipse 3.3.2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM