scan gradle.kts

This commit is contained in:
linsui 2022-05-07 00:43:55 +08:00
parent 0aca165b4e
commit 90bc8e1e8f
4 changed files with 124 additions and 1 deletions

View file

@ -406,7 +406,7 @@ def scan_source(build_dir, build=metadata.Build()):
count += handleproblem('DexClassLoader', path_in_build_dir, filepath)
break
elif curfile.endswith('.gradle'):
elif curfile.endswith('.gradle') or curfile.endswith('.gradle.kts'):
if not os.path.isfile(filepath):
continue
with open(filepath, 'r', errors='replace') as f: