SONARJAVA-5708 Implement rule S8924: Mockito core methods should be imported statically#5689
SONARJAVA-5708 Implement rule S8924: Mockito core methods should be imported statically#5689NoemieBenard wants to merge 10 commits into
Conversation
Code Review ✅ Approved 2 resolved / 2 findingsImplements rule S8924 to enforce static imports for common Mockito methods, including all necessary metadata files. No remaining issues found. ✅ 2 resolved✅ Bug: Missing rule metadata files S8924.json / S8924.html
✅ Quality: S8924 declares "quickfix":"targeted" but no quick fix is implemented
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary by Gitar
MockitoStaticImportCheck(ruleS8924) to enforce static imports for common Mockito methods.mock,when,verify,spy,any, andeqwhen called viaMockito.qualifier.MockitoStaticImportCheckTestand corresponding sample fileMockitoStaticImportCheckSample.javato verify rule reporting.This will update automatically on new commits.