Skip to content

Speed up Refaster bug checker #1677

Speed up Refaster bug checker

Speed up Refaster bug checker #1677

Triggered via pull request December 26, 2023 19:11
Status Success
Total duration 3m 0s
Artifacts

codeql.yml

on: pull_request
Matrix: analyze
Fit to window
Zoom out
Zoom in

Annotations

90 warnings
analyze (ruby)
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
A change can be made to line 83 without causing a test to fail: refaster-support/src/main/java/tech/picnic/errorprone/refaster/AnnotatedCompositeCodeTransformer.java#L83
replaced return value with null for withTransformers (no tests cover this line NullReturnValsMutator)
A change can be made to line 237 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L237
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 239 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L239
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 233 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L233
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 235 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L235
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 229 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L229
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 231 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L231
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 225 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L225
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 227 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L227
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 253 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L253
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 255 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L255
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
2 different changes can be made to line 147 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L147
removed conditional - replaced equality check with false (covered by 19 tests RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with true (covered by 19 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 249 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L249
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 251 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L251
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 245 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L245
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 247 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L247
replaced return value with "" for treeKindToString (covered by 19 tests EmptyObjectReturnValsMutator)
2 different changes can be made to line 166 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L166
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)
A change can be made to line 241 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L241
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
2 different changes can be made to line 137 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L137
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)
A change can be made to line 243 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L243
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 135 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L135
removed conditional - replaced equality check with false (covered by 19 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 269 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L269
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 205 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L205
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 271 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L271
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 207 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L207
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 265 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L265
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 267 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L267
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 261 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L261
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 263 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L263
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 257 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L257
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 259 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L259
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 221 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L221
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 223 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L223
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 281 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L281
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 217 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L217
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 219 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L219
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 163 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L163
removed conditional - replaced equality check with true (covered by 19 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 140 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L140
removed conditional - replaced equality check with false (covered by 19 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 277 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L277
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 213 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L213
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 279 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L279
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 215 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L215
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 273 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L273
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 209 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L209
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 275 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L275
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 211 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L211
replaced return value with "" for treeKindToString (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 432 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L432
replaced return value with null for visitUnary (no tests cover this line NullReturnValsMutator)
2 different changes can be made to line 453 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L453
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)
5 different changes can be made to line 394 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L394
removed call to substring (no tests cover this line RemoveChainedCallsMutator) changed conditional boundary (no tests cover this line ConditionalsBoundaryMutator) Replaced integer addition with subtraction (no tests cover this line MathMutator) removed conditional - replaced comparison check with false (no tests cover this line RemoveConditionalMutator_ORDER_ELSE) replaced return value with "" for getSimpleName (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 419 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L419
replaced return value with null for visitAssignment (no tests cover this line NullReturnValsMutator)
2 different changes can be made to line 449 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L449
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)
A change can be made to line 438 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L438
replaced return value with null for visitBinary (covered by 19 tests NullReturnValsMutator)
A change can be made to line 464 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L464
replaced return value with Collections.emptyList for copy (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 371 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L371
removed conditional - replaced equality check with false (covered by 19 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 376 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L376
removed conditional - replaced equality check with false (covered by 19 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 389 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L389
replaced return value with "" for getIdentifier (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 426 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L426
replaced return value with null for visitCompoundAssignment (no tests cover this line NullReturnValsMutator)
A change can be made to line 49 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/Node.java#L49
removed conditional - replaced equality check with false (covered by 308 tests RemoveConditionalMutator_EQUAL_ELSE)
2 different changes can be made to line 59 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/Node.java#L59
changed conditional boundary (covered by 308 tests ConditionalsBoundaryMutator) removed conditional - replaced comparison check with false (covered by 308 tests RemoveConditionalMutator_ORDER_ELSE)
A change can be made to line 534 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L534
replaced return value with null for visitCompoundAssignment (no tests cover this line NullReturnValsMutator)
A change can be made to line 527 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L527
replaced return value with null for visitAssignment (no tests cover this line NullReturnValsMutator)
A change can be made to line 546 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L546
replaced return value with null for visitBinary (covered by 19 tests NullReturnValsMutator)
2 different changes can be made to line 501 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L501
swapped parameters 1 and 2 in call to reduce (covered by 19 tests ParamSwapMutator) replaced return value with null for visitVariable (covered by 19 tests NullReturnValsMutator)
A change can be made to line 540 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L540
replaced return value with null for visitUnary (no tests cover this line NullReturnValsMutator)
A change can be made to line 495 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L495
replaced return value with null for visitMethod (covered by 19 tests NullReturnValsMutator)
A change can be made to line 486 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L486
replaced return value with null for visitClass (covered by 19 tests NullReturnValsMutator)
A change can be made to line 106 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/Node.java#L106
removed conditional - replaced equality check with false (covered by 25 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 100 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/Node.java#L100
removed call to java/util/List::sort (covered by 25 tests VoidMethodCallMutator)
A change can be made to line 327 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L327
replaced return value with "" for getTopLevelClass (no tests cover this line EmptyObjectReturnValsMutator)
A change can be made to line 318 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L318
replaced return value with null for getTemplateStatements (no tests cover this line NullReturnValsMutator)
A change can be made to line 306 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L306
replaced boolean return with false for isUClassIdent (covered by 19 tests BooleanFalseReturnValsMutator)
A change can be made to line 331 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L331
replaced return value with null for getExpressions (no tests cover this line NullReturnValsMutator)
A change can be made to line 322 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/RefasterRuleSelector.java#L322
replaced return value with null for getClassIdent (no tests cover this line NullReturnValsMutator)
A change can be made to line 104 without causing a test to fail: refaster-runner/src/main/java/tech/picnic/errorprone/refaster/runner/Refaster.java#L104
replaced return value with null for matchCompilationUnit (no tests cover this line NullReturnValsMutator)