The “official” findbugs plugin allows for generating an xml or an html report, but not both. This is annoying, since xml reports are typically used (for example) to feed sonar during a CI build, but html reports are nice when you want to check code during development. It seems like the HTML reports are generated by applying an XSL stylesheet to the XML report anyway, so it should be relatively easy to provide both reports:
-
if only xml is asked, generate the xml report to a temp directory and copy it to the reports/findbugs directory
-
if only html is asked, generate the xml report to a temp directory, and apply the xslt stylesheet with the reports/findbugs directory as output dir
-
if both are asked, do all of the above