1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

scanner: avoid checking if usual files are binary

This commit is contained in:
Daniel Martí 2015-09-13 22:22:03 -07:00
parent 055759cf76
commit 15e14075cf

View File

@ -155,6 +155,11 @@ def scan_source(build_dir, root_dir, thisbuild):
count += handleproblem('usual suspect at line %d' % i, fd, fp) count += handleproblem('usual suspect at line %d' % i, fd, fp)
break break
# These files are often found - avoid checking if they are binary
# to speed up the scanner
elif ext in ['xml', 'md', 'txt', 'html', 'sh', 'png']:
pass
elif is_binary(fp): elif is_binary(fp):
if is_executable(fp): if is_executable(fp):
count += handleproblem('executable binary', fd, fp) count += handleproblem('executable binary', fd, fp)