Commit 8b472e6
fix(optional_dereference): suppress string-concat URL in .get() FP
Tornado test client uses self.get(\"/path?\" + params) where the URL is
a BinOp (string concatenation). Walk to the leftmost operand — if it
is a string literal starting with \"/\" or \"://\", treat the call as an
HTTP request rather than a dict.get() returning Optional.
Eliminates 27 false positives in mher/flower (Celery monitoring UI).
Adds test: test_tornado_test_client_get_string_concat_not_flagged (169 total).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c3ccbf9 commit 8b472e6
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
285 | 300 | | |
286 | 301 | | |
287 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
672 | 696 | | |
673 | 697 | | |
674 | 698 | | |
| |||
0 commit comments