Repository navigation
Fix SonarCloud test-binaries config and clear two code smells - #3485
Conversation
SonarCloud warned "Missing sonar.java.test.binaries" (less precise test-code analysis). The sonar-maven-plugin was not auto-detecting the compiled test classes, so declare each module's target/test-classes explicitly.
Use an unnamed variable for the unused Throwable in AdlUtilFFM.adlMalloc (java:S7467), and a java.time.Month constant instead of an int literal in RegistryValueUtilTest (java:S8694).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout. (15)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2026-07-06T19:25:59.225ZApplied to files:
🔇 Additional comments (3)
📝 WalkthroughWalkthroughThe changes update a registry date test to use ChangesMaintenance updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3485 +/- ##
============================================
+ Coverage 75.05% 75.08% +0.02%
Complexity 76 76
============================================
Files 590 590
Lines 21559 21559
Branches 3610 3610
============================================
+ Hits 16182 16187 +5
+ Misses 3406 3401 -5
Partials 1971 1971
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
oshi-benchmark is not published and its comparison tests only compile under the native-comparison profile, so the default Sonar build finds no test binaries for it -- the source of the residual "sonar.java.test.binaries" warning after #3485. It contributes no findings; exclude it from analysis with sonar.skip.
Small pre-7.4.1 cleanup from a SonarCloud review. The analysis is otherwise clean — 0 bugs, 0 vulnerabilities, 0 reliability, 0 security issues; the remaining code smells are pre-existing or covered by the accept-all cognitive-complexity policy.
SonarCloud config
Declare
sonar.java.test.binaries(each module'starget/test-classes). SonarCloud was warningMissing 'sonar.java.test.binaries' property. You might end up with less precise analysis results.— thesonar-maven-pluginwasn't auto-detecting the compiled test classes (verified they compile: 221/60/23/8 classes). Resolves per-module via${project.build.testOutputDirectory}. Validated on the next master SonarCloud run.Two flagged code smells (introduced by the audit PRs)
AdlUtilFFM.adlMalloc—catch (Throwable t)wheretis unused →catch (Throwable _)(java:S7467), matching the unnamed-variable convention already used elsewhere.RegistryValueUtilTest—LocalDate.of(2020, 1, 1)→LocalDate.of(2020, Month.JANUARY, 1)(java:S8694).No CHANGELOG entry — build config and code-smell cleanup with no user-observable change.
Summary by CodeRabbit
Build & Quality
Bug Fixes