Files
codeql/python/ql/test/library-tests/frameworks/stdlib/SafeAccessCheck.py
Owen Mansel-Chan 5a97348e78 python: Inline expectation should have space after $
This was a regex-find-replace from `# \$(?! )` (using a negative lookahead) to `# $ `.
2026-03-04 12:45:05 +00:00

11 lines
178 B
Python

s = "taintedString"
if s.startswith("tainted"):
s2 = s # $ SafeAccessCheck=s
pass
sw = s.startswith
if sw("safe"):
s2 = s # $ MISSING: SafeAccessCheck=s
pass