mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
19 lines
383 B
Python
19 lines
383 B
Python
# Regression test for a false-positive in 'Uninitialized Local'
|
|
|
|
def func():
|
|
safe = 0
|
|
for i in []:
|
|
safe = 1
|
|
if True:
|
|
pass
|
|
print safe # wrongly flagged
|
|
|
|
from module1 import *
|
|
|
|
def func2():
|
|
os
|
|
|
|
def findPluginJars(dir):
|
|
return filter(lambda y: y,
|
|
(os.path.join(root, f) for root, _, files in os.walk(dir + '/plugins') for f in files))
|