Computes the difference between two rsonar_result objects, similar
to SonarQube's "New Code" analysis. This is useful for detecting
regressions or improvements between two analysis runs (e.g., before
and after a pull request).
Value
An rsonar_diff object (list) containing:
deltaData frame of metric deltas (metric, baseline, current, change)
improvedLogical.
TRUEif all metrics improved or stayed the samenew_issuesLint issues present in current but not in baseline
fixed_issuesLint issues present in baseline but not in current
Examples
if (FALSE) { # \dontrun{
baseline <- sonar_analyse(".", include_coverage = FALSE)
# ... make changes ...
current <- sonar_analyse(".", include_coverage = FALSE)
diff <- sonar_diff(current, baseline)
print(diff)
} # }