mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Adress review comments: Add missing deprecation + additional test case
This commit is contained in:
@@ -106,6 +106,11 @@ def test_in_list_with_constants():
|
||||
else:
|
||||
ensure_tainted(ts) # $ tainted
|
||||
|
||||
if ts in ["safe", not_constant(), None]:
|
||||
ensure_tainted(ts) # $ tainted
|
||||
|
||||
def not_constant():
|
||||
return "x"
|
||||
|
||||
SAFE = ["safe", "also_safe"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user