mirror of
https://github.com/github/codeql.git
synced 2026-06-22 13:21:10 +02:00
Undo conversion for queries that import LegacyPointsTo
This commit is contained in:
@@ -1,2 +1 @@
|
||||
query: Classes/InconsistentMRO.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Classes/InconsistentMRO.ql
|
||||
@@ -6,7 +6,7 @@ class X(object):
|
||||
class Y(X):
|
||||
pass
|
||||
|
||||
class Z(X, Y): # $ Alert
|
||||
class Z(X, Y):
|
||||
pass
|
||||
|
||||
class O:
|
||||
|
||||
@@ -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: Exceptions/IllegalExceptionHandlerType.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Exceptions/IllegalExceptionHandlerType.ql
|
||||
@@ -1,2 +1 @@
|
||||
query: Exceptions/IllegalRaise.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Exceptions/IllegalRaise.ql
|
||||
@@ -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)
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Expressions/TruncatedDivision.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Expressions/TruncatedDivision.ql
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Statements/IterableStringOrSequence.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Statements/IterableStringOrSequence.ql
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
__all__ = [ "x", "y", "z", "module" ] # $ Alert[py/undefined-export]
|
||||
__all__ = [ "x", "y", "z", "module" ]
|
||||
|
||||
x = 1
|
||||
if 0:
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Variables/UndefinedExport.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Variables/UndefinedExport.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Variables/UndefinedGlobal.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Variables/UndefinedGlobal.ql
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
query: Variables/UninitializedLocal.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
Variables/UninitializedLocal.ql
|
||||
|
||||
@@ -1 +1 @@
|
||||
__all__ = [ "module", "not_exists" ] # $ Alert[py/undefined-export]
|
||||
__all__ = [ "module", "not_exists" ]
|
||||
Reference in New Issue
Block a user