English 中文(简体)
Findbugs XML报告产生的FindBugs-HTML报告
原标题:FindBugs- HTML Report generation from Findbugs XML report
  • 时间:2012-01-12 08:29:30
  •  标签:
  • findbugs

I am using FindBugs (version 1.3.9) Eclipse Plugin. I run findbugs and saved findings in XML file. I need to generate HTML Report of the XML report.

我们是否有任何工具?

I want the output to be similar to: http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/findbugs-report.html

问题回答

我正在把这样的东西作为指挥线:

$ ./findbugs -textui -userPrefs edu.umd.cs.findbugs.core.prefs  -progress
    -maxHeap 1500 -nested:false -output results/outputfile.html -effort:max
    -low -sortByClass **-html:fancy.xsl** -auxclasspath servlet-api.jar
    -auxclasspath selenium-server-standalone-2.43.0.jar
    -auxclasspath commons-lang-2.6.jar ~/Downloads/bodgeit-master

这些备选办法可用于产生超文本产出。

You can also use a simple utility called unionBugs to collect all bugs found in different sub-projects, which take arguments output file name with "-output" switch followed by any number of xml files. Steps:
1. Go to bin subdirectory in Findbugs directory
2. Run ./unionBugs -output <output_file_name.xml> inputfile1 inputfile2 ... inputfilen
3. Later, run a command convertXmlToText to transform XML into HTML file.

./convertXmlToText -longBugCodes -html <input_file1.xml> <output_file.html>

为了通过FindBugs直接生成超文本报告,你可以使用以下(类似无照的)指挥线:

java -cp findbugs.jar edu.umd.cs.findbugs.PrintingBugReporter -html analysisResult.xml >output.html

总的说来,它只是一种XSL转变。 辅助的SL档案被捆绑在垃圾箱中。 作为资源。

我没有在FindBugs Eclipse plugin方面的经验,但我知道,FindBugs Ant的任务有选择,可在-output上产生。 是否有办法混淆FindBugs Eclipse plugin生产html的产出?

rel=“nofollow” FindBugs Ant Task Manual

您可使用xslt,从食堂中生成报告。

This post shows how to do that: Findbug - ANT xslt stylesheet source code references





相关问题
Is it possible to run FindBugs against only one Java class?

I use the FindBugs Eclipse plug-in and was wondering if I can simply analyze only one class rather than the entire project? I can t seem to figure it out. Simply right-clicking on the target class ...

Thread Safety framework

The following class is not thread-safe (as proven in Proving the following code not thread safe ) Is there a framework out there that can help with either compile time / run time analysis and tell us ...

FindBugs and CheckForNull on classes vs. interfaces

Is there any way to let FindBugs check and warn me if a CheckForNull annotation is present on the implementation of a method in a class, but not on the declaration of the method in the interface? ...

MALICIOUS_CODE EI_EXPOSE_REP Medium

I run findbugs against all of my code and only tackle the top stuff. I finally got the top stuff resolved and now am looking at the details. I have a simple entity, say a user: public class User ...

热门标签