Undo conversion for queries that import LegacyPointsTo

This commit is contained in:
Owen Mansel-Chan
2026-06-19 11:18:19 +01:00
parent 5497f2c5fe
commit 451fc2e4e7
143 changed files with 287 additions and 358 deletions

View File

@@ -1,2 +1 @@
query: Variables/UnusedModuleVariable.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Variables/UnusedModuleVariable.ql

View File

@@ -1,2 +1 @@
query: Variables/UnusedParameter.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Variables/UnusedParameter.ql

View File

@@ -22,7 +22,7 @@ __hidden_marker = False
#Unused parameter, local and global
def u1(x): # $ Alert[py/unused-parameter]
def u1(x):
return 0
def u2():
@@ -45,8 +45,8 @@ class D(C):
pass
#Unused module variable
not_used_var1 = 17 # $ Alert[py/unused-global-variable]
not_used_var2 = 18 # $ Alert[py/unused-global-variable]
not_used_var1 = 17
not_used_var2 = 18
is_used_var1 = 19
is_used_var2 = 20
@@ -83,7 +83,7 @@ def f(t):
# Entirely unused tuple
a,b,c = t # $ Alert[py/unused-global-variable]
a,b,c = t
def f(t):
a,b,c = t # $ Alert[py/unused-local-variable]
@@ -97,7 +97,7 @@ def second_def_undefined():
#And gloablly
glob_var = 0
use(glob_var)
glob_var = 1 # $ Alert[py/unused-global-variable] # unused
glob_var = 1 # unused