Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
titleNote
 This feature requires SQ 7.2+ and SonarJava 5.6+.

Import of SpotBugs, FindSecBugs

...

Reports

SonarJava allows to import into SonarQube/SonarCloud issues generated by SpotBugs. Because SpotBugs and FindBugs share the same output format, it's also possible to import reports from FindBugs and its extensions (FindSecBugs, fb-contrib). Please refer to the SpotBugs or FindSecBugs documentations to know how to generate the issues reports.

...

Because FindSecBugs, fb-contrib are extensions of SpotBugs, their issues are included in the file generated for SpotBugs issues. There is no specific file for them.

Import of PMD Reports

Please refer to the PMD documentation to know how to generate the issues reports.

...

Code Block
languagebash
sonar.java.pmd.reportPaths=./target/pmd.xml

Import of Checkstyle Reports

Please refer to the Checkstyle documentation to know how to generate the issues reports.

...

Code Block
languagebash
sonar.java.checkstyle.reportPaths=./target/checkstyle-result.xml

Maven User?

If you are a Maven user and you want to quickly play with all of this:

...