Generates a JUnit XML report consumable by GitLab CI, Jenkins,
GitHub Actions and SonarQube. Each lintr issue becomes a <failure>
within a <testcase>.
Arguments
- x
An
rsonar_resultobject returned bysonar_analyse().- output
Path to the output XML file. Default
"rsonar-junit.xml".
Examples
if (FALSE) { # \dontrun{
res <- sonar_analyse(".")
export_junit(res, "junit-results.xml")
} # }