Skip to content

Commit 3a762f7

Browse files
authored
feat: Extend reflexive methods with additional string operations (#1825)
* feat: extend reflexive methods with additional string operations * fix(python): add missing dataflow source in TestPythonObjects snapshot
1 parent 9ee4600 commit 3a762f7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pkg/languages/python/analyzer/analyzer.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ var reflexiveMethods = []string{
1515
"format",
1616
"replace",
1717
"split",
18+
"lower",
19+
"upper",
20+
"strip",
21+
"lstrip",
22+
"rstrip",
23+
"capitalize",
24+
"title",
25+
"swapcase",
26+
"casefold",
27+
"expandtabs",
1828
}
1929

2030
type analyzer struct {

pkg/languages/python/detectors/.snapshots/TestPythonObjects-object_class

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ children:
319319
id: 67
320320
range: 8:15 - 8:32
321321
dataflow_sources:
322+
- 69
322323
- 75
323324
children:
324325
- type: attribute

0 commit comments

Comments
 (0)