SONARJAVA-6721 Extend rule S2442 to more "java.util.concurrent" objects - #5890
SONARJAVA-6721 Extend rule S2442 to more "java.util.concurrent" objects#5890NoemieBenard wants to merge 9 commits into
Conversation
| .onFile(mainCodeSourcesPath("checks/SynchronizedOnConcurrentObjectCheckSample.java")) | ||
| .withCheck(new SynchronizedOnConcurrentObjectCheck()) | ||
| .verifyIssues(); | ||
| } |
There was a problem hiding this comment.
Could we also test withoutSemantic? In preparation for getting rid of autoscan.
✅ All code review findings resolved.
|
|
This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically |
6443de8 to
bcdde13
Compare
Code Review ✅ Approved 3 resolved / 3 findingsExtends rule S2442 to detect synchronized blocks across all java.util.concurrent objects and updates the rule documentation and metadata accordingly. No issues found. ✅ 3 resolved✅ Edge Case: Rule flags all java.util.concurrent types, not just sync primitives
✅ Quality: S2442 rule metadata not updated for extended scope
✅ Bug: without-semantic test expects issues the check cannot raise
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary by Gitar
SynchronizedOnConcurrentObjectCheck(S9141) to detect synchronized blocks onjava.util.concurrentobjectsThis will update automatically on new commits.