SONARJAVA-6604 Implement S9016: Mock objects should not be created inline within "thenReturn()"#5794
SONARJAVA-6604 Implement S9016: Mock objects should not be created inline within "thenReturn()"#5794NoemieBenard wants to merge 3 commits into
Conversation
Ruling Diff SummaryDetected changes in 1 rule files: 0 issues removed, 7 issues added. S9016 (
|
Code Review ✅ ApprovedImplements S9016 to prevent inline mock creation within thenReturn() calls, including full test coverage and rule metadata. No issues found. 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
MockitoInlineMockInThenReturnCheckto detect mock creation insidethenReturn()calls.S9016.This will update automatically on new commits.