Skip to content

Introduce TypeMemberOrder bug checker #3922

Introduce TypeMemberOrder bug checker

Introduce TypeMemberOrder bug checker #3922

Triggered via pull request December 7, 2024 10:38
Status Success
Total duration 2m 42s
Artifacts

sonarcloud.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
5 different changes can be made to line 89 without causing a test to fail: error-prone-utils/src/main/java/tech/picnic/errorprone/utils/MoreASTHelpers.java#L89
removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF) removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF) replaced boolean return with true for isGeneratedConstructor (no tests cover this line BooleanTrueReturnValsMutator)
3 different changes can be made to line 207 without causing a test to fail: error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L207
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with true (covered by 18 tests RemoveConditionalMutator_EQUAL_IF) removed conditional - replaced equality check with true (covered by 18 tests RemoveConditionalMutator_EQUAL_IF)
3 different changes can be made to line 95 without causing a test to fail: error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L95
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with false (covered by 12 tests RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with false (covered by 10 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to a lambda on line 259 without causing a test to fail: error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L259
removed conditional - replaced equality check with false in 1st lambda in sortTypeMembers (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 100 without causing a test to fail: error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L100
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)