sonar_hotspots(): ranks files by estimated technical debt so developers know which ones to fix first, similar to SonarQube’s “Code Smells” / hotspots view. Previously debt_index() only reported a single project-wide score with no per-file breakdown (#12)
sonar_report(): the HTML report now includes a “Hotspots - Files to Fix First” section (top 10 files by debt), placed right after the Technical Debt summary (#12)
sonar_fix(): new unused_vars category detects and removes variable assignments that are never read within the same file, using conservative heuristics to avoid false positives (#13)
sonar_fix(): new duplicate_libs category detects and removes duplicate library() calls loading the same package multiple times (#13)
Improvements
sonar_fix(): the simplify category now handles compound boolean expressions (x == TRUE && y → x && y, x == FALSE \|\| y → !x \|\| y) in addition to simple patterns (#13)
sonar_fix(): fixed a bug in assignment where the right-hand side of y = 2 was lost during = → <- conversion (#13)
rsonar 0.2.0 (2026-04-20)
New features
sonar_diff(): compare two analyses to detect regressions or improvements, similar to SonarQube’s “New Code” analysis (#9)
export_sarif(): export results in SARIF format for GitHub Code Scanning, VS Code and Azure DevOps integration (#10)
sonar_trend(): persist analysis history to a JSON file for tracking quality metrics over time (#11)
Documentation
All documentation rewritten in English (roxygen, vignettes, README, pkgdown site)