Skip to content

Introduce EagerStringFormatting check #2573

Introduce EagerStringFormatting check

Introduce EagerStringFormatting check #2573

Triggered via pull request December 14, 2024 14:20
Status Success
Total duration 32s
Artifacts 1

deploy-website.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

19 warnings
A change can be made to line 113 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L113
replaced return value with null for analyzeFormatStringContext (covered by 1 tests NullReturnValsMutator)
A change can be made to line 162 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L162
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 135 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L135
removed conditional - replaced comparison check with false (covered by 2 tests RemoveConditionalMutator_ORDER_ELSE)
A change can be made to line 165 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L165
replaced return value with null for analyzeFormatStringContext (no tests cover this line NullReturnValsMutator)
A change can be made to line 191 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L191
removed conditional - replaced equality check with true (covered by 2 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 186 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L186
replaced return value with null for analyzeFormatStringContext (covered by 1 tests NullReturnValsMutator)
A change can be made to line 138 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L138
replaced return value with null for analyzeFormatStringContext (no tests cover this line NullReturnValsMutator)
A change can be made to line 243 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L243
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 269 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L269
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 284 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L284
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to a lambda on line 225 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L225
replaced return value with null for 1st lambda in deriveFormatStringExpression (no tests cover this line NullReturnValsMutator)
A change can be made to line 232 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L232
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 278 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L278
replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)
2 different changes can be made to line 276 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L276
Replaced integer subtraction with addition (covered by 2 tests MathMutator) removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 233 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L233
replaced return value with Optional.empty for tryCreate (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 290 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L290
replaced boolean return with true for isSimplifiable (covered by 2 tests BooleanTrueReturnValsMutator)
A change can be made to a lambda on line 269 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L269
replaced boolean return with false for 1st lambda in isSimplifiable (covered by 2 tests BooleanFalseReturnValsMutator)
A change can be made to line 271 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L271
replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)

Artifacts

Produced during runtime
Name Size
github-pages Expired
973 KB