You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruby: Remove value-flow for name-matched summaries
String summaries that are identified by name only should not specify
value-preserving flow as this can cause spurious flow in cases where
they are applied to different but identically-named methods.
Copy file name to clipboardExpand all lines: ruby/ql/test/library-tests/dataflow/string-flow/string-flow.expected
-53Lines changed: 0 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ edges
23
23
| string_flow.rb:31:9:31:18 | call to source : | string_flow.rb:33:10:33:10 | b |
24
24
| string_flow.rb:31:9:31:18 | call to source : | string_flow.rb:35:10:35:10 | c |
25
25
| string_flow.rb:39:9:39:18 | call to source : | string_flow.rb:40:10:40:10 | a : |
26
-
| string_flow.rb:39:9:39:18 | call to source : | string_flow.rb:40:10:40:10 | a : |
27
-
| string_flow.rb:40:10:40:10 | a : | string_flow.rb:40:10:40:12 | call to b |
28
26
| string_flow.rb:40:10:40:10 | a : | string_flow.rb:40:10:40:12 | call to b |
29
27
| string_flow.rb:44:9:44:18 | call to source : | string_flow.rb:45:10:45:10 | a : |
30
28
| string_flow.rb:44:9:44:18 | call to source : | string_flow.rb:46:10:46:10 | a : |
@@ -116,8 +114,6 @@ edges
116
114
| string_flow.rb:154:9:154:18 | call to source : | string_flow.rb:155:10:155:10 | a : |
117
115
| string_flow.rb:155:10:155:10 | a : | string_flow.rb:155:10:155:34 | call to force_encoding |
118
116
| string_flow.rb:159:9:159:18 | call to source : | string_flow.rb:160:10:160:10 | a : |
119
-
| string_flow.rb:159:9:159:18 | call to source : | string_flow.rb:160:10:160:10 | a : |
120
-
| string_flow.rb:160:10:160:10 | a : | string_flow.rb:160:10:160:17 | call to freeze |
121
117
| string_flow.rb:160:10:160:10 | a : | string_flow.rb:160:10:160:17 | call to freeze |
122
118
| string_flow.rb:164:9:164:18 | call to source : | string_flow.rb:166:10:166:10 | a : |
123
119
| string_flow.rb:164:9:164:18 | call to source : | string_flow.rb:167:10:167:10 | a : |
@@ -182,14 +178,11 @@ edges
182
178
| string_flow.rb:221:9:221:18 | call to source : | string_flow.rb:223:10:223:10 | a : |
183
179
| string_flow.rb:221:9:221:18 | call to source : | string_flow.rb:223:10:223:10 | a : |
184
180
| string_flow.rb:222:9:222:18 | call to source : | string_flow.rb:223:20:223:20 | b : |
185
-
| string_flow.rb:222:9:222:18 | call to source : | string_flow.rb:223:20:223:20 | b : |
186
181
| string_flow.rb:223:10:223:10 | [post] a : | string_flow.rb:225:10:225:10 | a |
187
182
| string_flow.rb:223:10:223:10 | [post] a : | string_flow.rb:225:10:225:10 | a |
188
183
| string_flow.rb:223:10:223:10 | a : | string_flow.rb:223:10:223:10 | [post] a : |
189
184
| string_flow.rb:223:10:223:10 | a : | string_flow.rb:223:10:223:10 | [post] a : |
190
185
| string_flow.rb:223:20:223:20 | b : | string_flow.rb:223:10:223:10 | [post] a : |
191
-
| string_flow.rb:223:20:223:20 | b : | string_flow.rb:223:10:223:10 | [post] a : |
192
-
| string_flow.rb:223:20:223:20 | b : | string_flow.rb:223:10:223:21 | call to replace |
193
186
| string_flow.rb:223:20:223:20 | b : | string_flow.rb:223:10:223:21 | call to replace |
194
187
| string_flow.rb:229:9:229:18 | call to source : | string_flow.rb:230:10:230:10 | a : |
195
188
| string_flow.rb:230:10:230:10 | a : | string_flow.rb:230:10:230:18 | call to reverse |
@@ -279,12 +272,8 @@ edges
279
272
| string_flow.rb:289:10:289:10 | a : | string_flow.rb:289:10:289:19 | call to squeeze! |
280
273
| string_flow.rb:290:10:290:10 | a : | string_flow.rb:290:10:290:24 | call to squeeze! |
281
274
| string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:295:10:295:10 | a : |
282
-
| string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:295:10:295:10 | a : |
283
-
| string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:296:10:296:10 | a : |
284
275
| string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:296:10:296:10 | a : |
285
276
| string_flow.rb:295:10:295:10 | a : | string_flow.rb:295:10:295:17 | call to to_str |
286
-
| string_flow.rb:295:10:295:10 | a : | string_flow.rb:295:10:295:17 | call to to_str |
287
-
| string_flow.rb:296:10:296:10 | a : | string_flow.rb:296:10:296:15 | call to to_s |
288
277
| string_flow.rb:296:10:296:10 | a : | string_flow.rb:296:10:296:15 | call to to_s |
289
278
| string_flow.rb:300:9:300:18 | call to source : | string_flow.rb:301:10:301:10 | a : |
290
279
| string_flow.rb:300:9:300:18 | call to source : | string_flow.rb:302:22:302:22 | a : |
@@ -303,23 +292,14 @@ edges
303
292
| string_flow.rb:307:10:307:10 | a : | string_flow.rb:307:10:307:26 | call to tr_s! |
304
293
| string_flow.rb:308:25:308:25 | a : | string_flow.rb:308:10:308:26 | call to tr_s! |
305
294
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:313:5:313:5 | a : |
306
-
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:313:5:313:5 | a : |
307
-
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:314:5:314:5 | a : |
308
295
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:314:5:314:5 | a : |
309
296
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:315:14:315:14 | a : |
310
-
| string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:315:14:315:14 | a : |
311
297
| string_flow.rb:313:5:313:5 | a : | string_flow.rb:313:20:313:20 | x : |
312
-
| string_flow.rb:313:5:313:5 | a : | string_flow.rb:313:20:313:20 | x : |
313
-
| string_flow.rb:313:20:313:20 | x : | string_flow.rb:313:28:313:28 | x |
314
298
| string_flow.rb:313:20:313:20 | x : | string_flow.rb:313:28:313:28 | x |
315
299
| string_flow.rb:314:5:314:5 | a : | string_flow.rb:314:26:314:26 | x : |
316
-
| string_flow.rb:314:5:314:5 | a : | string_flow.rb:314:26:314:26 | x : |
317
300
| string_flow.rb:314:26:314:26 | x : | string_flow.rb:314:34:314:34 | x |
318
-
| string_flow.rb:314:26:314:26 | x : | string_flow.rb:314:34:314:34 | x |
319
-
| string_flow.rb:315:14:315:14 | a : | string_flow.rb:315:20:315:20 | x : |
320
301
| string_flow.rb:315:14:315:14 | a : | string_flow.rb:315:20:315:20 | x : |
321
302
| string_flow.rb:315:20:315:20 | x : | string_flow.rb:315:28:315:28 | x |
322
-
| string_flow.rb:315:20:315:20 | x : | string_flow.rb:315:28:315:28 | x |
323
303
nodes
324
304
| string_flow.rb:2:9:2:18 | call to source : | semmle.label | call to source : |
325
305
| string_flow.rb:2:9:2:18 | call to source : | semmle.label | call to source : |
@@ -348,11 +328,8 @@ nodes
348
328
| string_flow.rb:33:10:33:10 | b | semmle.label | b |
349
329
| string_flow.rb:35:10:35:10 | c | semmle.label | c |
350
330
| string_flow.rb:39:9:39:18 | call to source : | semmle.label | call to source : |
351
-
| string_flow.rb:39:9:39:18 | call to source : | semmle.label | call to source : |
352
-
| string_flow.rb:40:10:40:10 | a : | semmle.label | a : |
353
331
| string_flow.rb:40:10:40:10 | a : | semmle.label | a : |
354
332
| string_flow.rb:40:10:40:12 | call to b | semmle.label | call to b |
355
-
| string_flow.rb:40:10:40:12 | call to b | semmle.label | call to b |
356
333
| string_flow.rb:44:9:44:18 | call to source : | semmle.label | call to source : |
357
334
| string_flow.rb:45:10:45:10 | a : | semmle.label | a : |
358
335
| string_flow.rb:45:10:45:23 | call to byteslice | semmle.label | call to byteslice |
@@ -457,11 +434,8 @@ nodes
457
434
| string_flow.rb:155:10:155:10 | a : | semmle.label | a : |
458
435
| string_flow.rb:155:10:155:34 | call to force_encoding | semmle.label | call to force_encoding |
459
436
| string_flow.rb:159:9:159:18 | call to source : | semmle.label | call to source : |
460
-
| string_flow.rb:159:9:159:18 | call to source : | semmle.label | call to source : |
461
-
| string_flow.rb:160:10:160:10 | a : | semmle.label | a : |
462
437
| string_flow.rb:160:10:160:10 | a : | semmle.label | a : |
463
438
| string_flow.rb:160:10:160:17 | call to freeze | semmle.label | call to freeze |
464
-
| string_flow.rb:160:10:160:17 | call to freeze | semmle.label | call to freeze |
465
439
| string_flow.rb:164:9:164:18 | call to source : | semmle.label | call to source : |
466
440
| string_flow.rb:165:9:165:18 | call to source : | semmle.label | call to source : |
467
441
| string_flow.rb:166:10:166:10 | a : | semmle.label | a : |
@@ -529,14 +503,11 @@ nodes
529
503
| string_flow.rb:221:9:221:18 | call to source : | semmle.label | call to source : |
530
504
| string_flow.rb:221:9:221:18 | call to source : | semmle.label | call to source : |
531
505
| string_flow.rb:222:9:222:18 | call to source : | semmle.label | call to source : |
532
-
| string_flow.rb:222:9:222:18 | call to source : | semmle.label | call to source : |
533
506
| string_flow.rb:223:10:223:10 | [post] a : | semmle.label | [post] a : |
534
507
| string_flow.rb:223:10:223:10 | [post] a : | semmle.label | [post] a : |
535
508
| string_flow.rb:223:10:223:10 | a : | semmle.label | a : |
536
509
| string_flow.rb:223:10:223:10 | a : | semmle.label | a : |
537
510
| string_flow.rb:223:10:223:21 | call to replace | semmle.label | call to replace |
538
-
| string_flow.rb:223:10:223:21 | call to replace | semmle.label | call to replace |
539
-
| string_flow.rb:223:20:223:20 | b : | semmle.label | b : |
540
511
| string_flow.rb:223:20:223:20 | b : | semmle.label | b : |
541
512
| string_flow.rb:225:10:225:10 | a | semmle.label | a |
542
513
| string_flow.rb:225:10:225:10 | a | semmle.label | a |
@@ -628,15 +599,10 @@ nodes
628
599
| string_flow.rb:290:10:290:10 | a : | semmle.label | a : |
629
600
| string_flow.rb:290:10:290:24 | call to squeeze! | semmle.label | call to squeeze! |
630
601
| string_flow.rb:294:9:294:18 | call to source : | semmle.label | call to source : |
631
-
| string_flow.rb:294:9:294:18 | call to source : | semmle.label | call to source : |
632
-
| string_flow.rb:295:10:295:10 | a : | semmle.label | a : |
633
602
| string_flow.rb:295:10:295:10 | a : | semmle.label | a : |
634
603
| string_flow.rb:295:10:295:17 | call to to_str | semmle.label | call to to_str |
635
-
| string_flow.rb:295:10:295:17 | call to to_str | semmle.label | call to to_str |
636
-
| string_flow.rb:296:10:296:10 | a : | semmle.label | a : |
637
604
| string_flow.rb:296:10:296:10 | a : | semmle.label | a : |
638
605
| string_flow.rb:296:10:296:15 | call to to_s | semmle.label | call to to_s |
639
-
| string_flow.rb:296:10:296:15 | call to to_s | semmle.label | call to to_s |
640
606
| string_flow.rb:300:9:300:18 | call to source : | semmle.label | call to source : |
641
607
| string_flow.rb:301:10:301:10 | a : | semmle.label | a : |
642
608
| string_flow.rb:301:10:301:23 | call to tr | semmle.label | call to tr |
@@ -655,37 +621,18 @@ nodes
655
621
| string_flow.rb:308:10:308:26 | call to tr_s! | semmle.label | call to tr_s! |
656
622
| string_flow.rb:308:25:308:25 | a : | semmle.label | a : |
657
623
| string_flow.rb:312:9:312:18 | call to source : | semmle.label | call to source : |
658
-
| string_flow.rb:312:9:312:18 | call to source : | semmle.label | call to source : |
659
-
| string_flow.rb:313:5:313:5 | a : | semmle.label | a : |
660
624
| string_flow.rb:313:5:313:5 | a : | semmle.label | a : |
661
625
| string_flow.rb:313:20:313:20 | x : | semmle.label | x : |
662
-
| string_flow.rb:313:20:313:20 | x : | semmle.label | x : |
663
-
| string_flow.rb:313:28:313:28 | x | semmle.label | x |
664
626
| string_flow.rb:313:28:313:28 | x | semmle.label | x |
665
627
| string_flow.rb:314:5:314:5 | a : | semmle.label | a : |
666
-
| string_flow.rb:314:5:314:5 | a : | semmle.label | a : |
667
628
| string_flow.rb:314:26:314:26 | x : | semmle.label | x : |
668
-
| string_flow.rb:314:26:314:26 | x : | semmle.label | x : |
669
-
| string_flow.rb:314:34:314:34 | x | semmle.label | x |
670
629
| string_flow.rb:314:34:314:34 | x | semmle.label | x |
671
630
| string_flow.rb:315:14:315:14 | a : | semmle.label | a : |
672
-
| string_flow.rb:315:14:315:14 | a : | semmle.label | a : |
673
631
| string_flow.rb:315:20:315:20 | x : | semmle.label | x : |
674
-
| string_flow.rb:315:20:315:20 | x : | semmle.label | x : |
675
-
| string_flow.rb:315:28:315:28 | x | semmle.label | x |
676
632
| string_flow.rb:315:28:315:28 | x | semmle.label | x |
677
633
subpaths
678
634
#select
679
635
| string_flow.rb:3:10:3:22 | call to new | string_flow.rb:2:9:2:18 | call to source : | string_flow.rb:3:10:3:22 | call to new | $@ | string_flow.rb:2:9:2:18 | call to source : | call to source : |
680
636
| string_flow.rb:8:10:8:30 | call to try_convert | string_flow.rb:7:9:7:18 | call to source : | string_flow.rb:8:10:8:30 | call to try_convert | $@ | string_flow.rb:7:9:7:18 | call to source : | call to source : |
681
-
| string_flow.rb:40:10:40:12 | call to b | string_flow.rb:39:9:39:18 | call to source : | string_flow.rb:40:10:40:12 | call to b | $@ | string_flow.rb:39:9:39:18 | call to source : | call to source : |
682
637
| string_flow.rb:83:10:83:10 | a | string_flow.rb:81:9:81:18 | call to source : | string_flow.rb:83:10:83:10 | a | $@ | string_flow.rb:81:9:81:18 | call to source : | call to source : |
683
-
| string_flow.rb:160:10:160:17 | call to freeze | string_flow.rb:159:9:159:18 | call to source : | string_flow.rb:160:10:160:17 | call to freeze | $@ | string_flow.rb:159:9:159:18 | call to source : | call to source : |
684
-
| string_flow.rb:223:10:223:21 | call to replace | string_flow.rb:222:9:222:18 | call to source : | string_flow.rb:223:10:223:21 | call to replace | $@ | string_flow.rb:222:9:222:18 | call to source : | call to source : |
685
638
| string_flow.rb:225:10:225:10 | a | string_flow.rb:221:9:221:18 | call to source : | string_flow.rb:225:10:225:10 | a | $@ | string_flow.rb:221:9:221:18 | call to source : | call to source : |
686
-
| string_flow.rb:225:10:225:10 | a | string_flow.rb:222:9:222:18 | call to source : | string_flow.rb:225:10:225:10 | a | $@ | string_flow.rb:222:9:222:18 | call to source : | call to source : |
687
-
| string_flow.rb:295:10:295:17 | call to to_str | string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:295:10:295:17 | call to to_str | $@ | string_flow.rb:294:9:294:18 | call to source : | call to source : |
688
-
| string_flow.rb:296:10:296:15 | call to to_s | string_flow.rb:294:9:294:18 | call to source : | string_flow.rb:296:10:296:15 | call to to_s | $@ | string_flow.rb:294:9:294:18 | call to source : | call to source : |
689
-
| string_flow.rb:313:28:313:28 | x | string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:313:28:313:28 | x | $@ | string_flow.rb:312:9:312:18 | call to source : | call to source : |
690
-
| string_flow.rb:314:34:314:34 | x | string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:314:34:314:34 | x | $@ | string_flow.rb:312:9:312:18 | call to source : | call to source : |
691
-
| string_flow.rb:315:28:315:28 | x | string_flow.rb:312:9:312:18 | call to source : | string_flow.rb:315:28:315:28 | x | $@ | string_flow.rb:312:9:312:18 | call to source : | call to source : |
0 commit comments