Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

How do I enable HTML reports for FindBugs? #74

Closed
tony19 opened this issue Feb 5, 2018 · 2 comments
Closed

How do I enable HTML reports for FindBugs? #74

tony19 opened this issue Feb 5, 2018 · 2 comments
Assignees
Labels

Comments

@tony19
Copy link

tony19 commented Feb 5, 2018

I tried the following to no avail:

staticAnalysis {
  findbugs {
    reports {
      xml.enabled false
      html.enabled true
    }
  }
}

and

tasks.withType(FindBugs) {
  reports {
    xml.enabled false
    html.enabled true
  }
}
@mr-archano
Copy link
Contributor

mr-archano commented Feb 5, 2018

Hi @tony19, as you might know FindBugs supports only one type of report at time. To avoid this issue we override the configuration and enable XML reports while we manually add a task that generates an HTML from it (see FindbugsConfigurator.groovy#L130-L132 and GenerateFindBugsHtmlReport.groovy).
Basically just running check you should be able to find an HTML report in the same folder of the XML report. Can you check please and let me know?

@mr-archano mr-archano self-assigned this Feb 5, 2018
@tony19
Copy link
Author

tony19 commented Feb 5, 2018

Thanks. I was running into a misleading Checkstyle error with gradle check (caused by a missing checkstyle.xml config), so I didn't see the html report for FindBugs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants