mirror of
https://github.com/github/codeql.git
synced 2026-06-23 05:37:02 +02:00
Undo conversion for queries that import LegacyPointsTo
This commit is contained in:
@@ -1,2 +1 @@
|
||||
query: Classes/DefineEqualsWhenAddingAttributes.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Classes/DefineEqualsWhenAddingAttributes.ql
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Classes/InconsistentMRO.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Classes/InconsistentMRO.ql
|
||||
@@ -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
|
||||
@@ -1,2 +1 @@
|
||||
query: Classes/MaybeUndefinedClassAttribute.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Classes/MaybeUndefinedClassAttribute.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Classes/UndefinedClassAttribute.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Classes/UndefinedClassAttribute.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Expressions/WrongNameForArgumentInCall.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Expressions/WrongNameForArgumentInCall.ql
|
||||
@@ -1,2 +1 @@
|
||||
query: Expressions/WrongNumberArgumentsInCall.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Expressions/WrongNumberArgumentsInCall.ql
|
||||
@@ -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)
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Expressions/WrongNumberArgumentsForFormat.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Expressions/WrongNumberArgumentsForFormat.ql
|
||||
@@ -1,2 +1 @@
|
||||
query: Expressions/TruncatedDivision.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Expressions/TruncatedDivision.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Statements/IterableStringOrSequence.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Statements/IterableStringOrSequence.ql
|
||||
@@ -1,2 +1 @@
|
||||
query: Statements/NonIteratorInForLoop.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Statements/NonIteratorInForLoop.ql
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
__all__ = [ "x", "y", "z", "module", "w" ] # $ Alert[py/undefined-export]
|
||||
__all__ = [ "x", "y", "z", "module", "w" ]
|
||||
|
||||
x = 1
|
||||
if 0:
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Variables/UndefinedExport.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Variables/UndefinedExport.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Variables/UninitializedLocal.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Variables/UninitializedLocal.ql
|
||||
|
||||
@@ -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" ]
|
||||
|
||||
@@ -1 +1 @@
|
||||
__all__ = [ "module", "not_exists" ] # $ Alert[py/undefined-export]
|
||||
__all__ = [ "module", "not_exists" ]
|
||||
Reference in New Issue
Block a user