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

View File

@@ -9,7 +9,7 @@ class RedefineEquals:
def __eq__(self, other):
return other is "Tuesday"
class C(RedefineEquals): # $ Alert
class C(RedefineEquals):
def __init__(self, args):
self.a, self.b = args

View File

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

View File

@@ -6,12 +6,12 @@ class X(object):
class Y(X):
pass
class Z(X, Y): # $ Alert
class Z(X, Y):
pass
class O:
pass
#This is OK in Python 2
class N(object, O): # $ Alert
class N(object, O):
pass

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

View File

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

View File

@@ -9,8 +9,8 @@ f(1, 2, 3, kw1=1)
f(1, 2, kw1=1, kw2=2)
#Not OK
f(1, 2, 3, kw1=1, kw3=3) # $ Alert[py/call/wrong-named-argument]
f(1, 2, 3, kw3=3) # $ Alert[py/call/wrong-named-argument]
f(1, 2, 3, kw1=1, kw3=3)
f(1, 2, 3, kw3=3)
#ODASA-5897
@@ -21,4 +21,4 @@ def ok():
return analyze_member_access(msg, original=original, chk=chk)
def bad():
return analyze_member_access(msg, original, chk=chk) # $ Alert[py/call/wrong-arguments]
return analyze_member_access(msg, original, chk=chk)

View File

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

View File

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

View File

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

View File

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

View File

@@ -23,5 +23,5 @@ async def good():
yield x
async def bad():
async for x in MissingAiter(): # $ Alert[py/non-iterable-in-for-loop]
async for x in MissingAiter():
yield x

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)
@@ -31,7 +31,7 @@ class Color(Enum):
def colors():
for color in Color:
print(color)
for color in 1: # $ Alert[py/non-iterable-in-for-loop]
for color in 1:
print(color)
colors()

View File

@@ -1,6 +1,6 @@
__all__ = [ "x", "y", "z", "module", "w" ] # $ Alert[py/undefined-export]
__all__ = [ "x", "y", "z", "module", "w" ]
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/UninitializedLocal.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql
Variables/UninitializedLocal.ql

View File

@@ -5,4 +5,4 @@ IntEnum._convert(
__name__,
lambda C: C.isupper() and C.startswith('AF_'))
__all__ = [ "Maybe", "Maybe_not" ] # $ Alert[py/undefined-export]
__all__ = [ "Maybe", "Maybe_not" ]

View File

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