mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
scanner: avoid checking if usual files are binary
This commit is contained in:
parent
055759cf76
commit
15e14075cf
@ -155,6 +155,11 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||
count += handleproblem('usual suspect at line %d' % i, fd, fp)
|
||||
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):
|
||||
if is_executable(fp):
|
||||
count += handleproblem('executable binary', fd, fp)
|
||||
|
Loading…
Reference in New Issue
Block a user