Skip to contents

Generates a SARIF (Static Analysis Results Interchange Format) file. SARIF is supported by GitHub Code Scanning, VS Code, Azure DevOps and many other tools.

Usage

export_sarif(x, output = "rsonar.sarif")

Arguments

x

An rsonar_result object returned by sonar_analyse().

output

Path to the output SARIF file. Default "rsonar.sarif".

Value

The path to the generated SARIF file (invisibly).

Examples

if (FALSE) { # \dontrun{
res <- sonar_analyse(".")
export_sarif(res, "results.sarif")
} # }