mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
[build] license_checker small fix
This commit is contained in:
@ -234,14 +234,10 @@ class Walker(object):
|
||||
break
|
||||
else:
|
||||
for i in files:
|
||||
for j in self._config.getIgnoreListFile():
|
||||
if (os.path.normpath(j) == os.path.join(address, i)):
|
||||
break
|
||||
else:
|
||||
if not (os.path.join(address, i) in list(map(lambda x: os.path.normpath(x), self._config.getIgnoreListFile()))):
|
||||
filename, file_extension = os.path.splitext(i)
|
||||
for j in self._config.getFileExtensions():
|
||||
if (file_extension == j):
|
||||
result.append(os.path.join(address, i))
|
||||
if file_extension in self._config.getFileExtensions():
|
||||
result.append(os.path.join(address, i))
|
||||
return result
|
||||
def checkFiles(self) -> list[Report]:
|
||||
files = self._getFiles()
|
||||
|
||||
Reference in New Issue
Block a user