Skip to content

Introduce EagerStringFormatting check #2573

Introduce EagerStringFormatting check

Introduce EagerStringFormatting check #2573

Triggered via pull request April 14, 2024 17:41
Status Success
Total duration 36s
Artifacts

openssf-scorecard.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 270 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L270
replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)
A change can be made to line 242 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L242
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 268 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L268
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 283 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L283
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
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
replaced return value with Optional.empty for tryCreate (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 231 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L231
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 277 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L277
replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)
2 different changes can be made to line 275 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L275
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 a lambda on line 268 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L268
replaced boolean return with false for 1st lambda in isSimplifiable (covered by 2 tests BooleanFalseReturnValsMutator)
A change can be made to line 289 without causing a test to fail: error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.java#L289
replaced boolean return with true for isSimplifiable (covered by 2 tests BooleanTrueReturnValsMutator)