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: Classes/InconsistentMRO.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Classes/InconsistentMRO.ql

View File

@@ -6,7 +6,7 @@ class X(object):
class Y(X):
pass
class Z(X, Y): # $ Alert
class Z(X, Y):
pass
class O:

View File

@@ -1,2 +1 @@
query: Classes/MaybeUndefinedClassAttribute.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Classes/MaybeUndefinedClassAttribute.ql

View File

@@ -1,2 +1 @@
query: Classes/UndefinedClassAttribute.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Classes/UndefinedClassAttribute.ql

View File

@@ -1,2 +1 @@
query: Exceptions/IllegalExceptionHandlerType.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Exceptions/IllegalExceptionHandlerType.ql

View File

@@ -1,2 +1 @@
query: Exceptions/IllegalRaise.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Exceptions/IllegalRaise.ql

View File

@@ -14,4 +14,4 @@ def raise_tuple(cond):
raise (Exception, "bananas", 17)
else:
#This is an error
raise (17, "bananas", Exception) # $ Alert[py/illegal-raise]
raise (17, "bananas", Exception)

View File

@@ -1,2 +1 @@
query: Expressions/TruncatedDivision.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Expressions/TruncatedDivision.ql

View File

@@ -62,14 +62,14 @@ print(average([1.0, 2.0]))
# This case is bad, and is a minimal obvious case that should be bad. It
# SHOULD be found by the query.
print(3 / 2) # $ Alert[py/truncated-division]
print(3 / 2)
# This case is bad. It uses indirect returns of integers through function calls
# to produce the problem. I
print(return_three() / return_two()) # $ Alert[py/truncated-division]
print(return_three() / return_two())

View File

@@ -1,2 +1 @@
query: Statements/IterableStringOrSequence.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Statements/IterableStringOrSequence.ql

View File

@@ -18,7 +18,7 @@ def f(x):
s = u"Hello World"
else:
s = [ u'Hello', u'World']
for thing in s: # $ Alert[py/iteration-string-and-sequence]
for thing in s:
print (thing)
import fake_six

View File

@@ -1,6 +1,6 @@
__all__ = [ "x", "y", "z", "module" ] # $ Alert[py/undefined-export]
__all__ = [ "x", "y", "z", "module" ]
x = 1
if 0:

View File

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

View File

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

View File

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

View File

@@ -1 +1 @@
__all__ = [ "module", "not_exists" ] # $ Alert[py/undefined-export]
__all__ = [ "module", "not_exists" ]