mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Rank multiple calls so only the first 2 calls are alerted
This commit is contained in:
@@ -86,4 +86,32 @@ class F4(F2, F3):
|
||||
F2.__init__(self)
|
||||
F3.__init__(self)
|
||||
|
||||
F4()
|
||||
F4()
|
||||
|
||||
class G1:
|
||||
def __init__(self):
|
||||
print("G1 init")
|
||||
|
||||
class G2(G1):
|
||||
def __init__(self):
|
||||
print("G2 init")
|
||||
G1.__init__(self)
|
||||
|
||||
class G3(G1):
|
||||
def __init__(self):
|
||||
print("G3 init")
|
||||
G1.__init__(self)
|
||||
|
||||
class G4(G1):
|
||||
def __init__(self):
|
||||
print("G4 init")
|
||||
G1.__init__(self)
|
||||
|
||||
class G5(G2,G3,G4):
|
||||
def __init__(self): # $ Alert # Only one alert is generated, that mentions the first two calls
|
||||
print("G5 init")
|
||||
G2.__init__(self)
|
||||
G3.__init__(self)
|
||||
G4.__init__(self)
|
||||
|
||||
G5()
|
||||
Reference in New Issue
Block a user