我使用的是FindBugs (1.3.9版) Eclipse插件。我运行findbugs并将结果保存在XML文件中。我需要生成的XML报告的HTML报告。
我们有没有现有的工具?
我希望输出类似于:http://mevenide.codehaus.org/maven-eclipse-plugin-plugin/findbugs-report.html
发布于 2015-11-10 23:32:10
我使用下面这样的内容作为命令行:
$ ./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这些选项可用于生成HTML输出。
您还可以使用一个名为unionBugs的简单实用程序来收集在不同子项目中发现的所有bug,这些子项目使用参数输出文件名,后跟"-output“开关,后跟任意数量的xml文件。步骤:
./unionBugs -output <output_file_name.xml> inputfile1 inputfile2 ... inputfilen./convertXmlToText -longBugCodes -html <input_file1.xml> <output_file.html>发布于 2015-10-13 13:18:32
要通过FindBugs直接生成超文本标记语言报告,您可以使用以下(可能未记录)命令行:
java -cp findbugs.jar edu.umd.cs.findbugs.PrintingBugReporter -html analysisResult.xml >output.html一般来说,它只是一个XSL转换。受支持的XSL文件作为资源捆绑在findbugs.jar中。
发布于 2012-01-19 01:12:26
我没有使用Ant插件的经验,但我知道FindBugs FindBugs任务有一个选项,可以让output以html格式生成。有什么方法可以配置FindBugs Eclipse插件来生成html输出吗?
FindBugs Ant Task Manual
https://stackoverflow.com/questions/8832008
复制相似问题