remove gradle-wrapper.jar during scan

We make sure to not use the gradle wrapper anyway so this should have no
impact.
This commit is contained in:
Marcus Hoffmann 2017-09-04 01:00:12 +02:00
parent af2eb2bd50
commit 15c4492625

View file

@ -198,7 +198,10 @@ def scan_source(build_dir, build):
elif ext == 'jar': elif ext == 'jar':
for name in suspects_found(curfile): for name in suspects_found(curfile):
count += handleproblem('usual supect \'%s\'' % name, path_in_build_dir, filepath) count += handleproblem('usual supect \'%s\'' % name, path_in_build_dir, filepath)
warnproblem('JAR file', path_in_build_dir) if curfile == 'gradle-wrapper.jar':
removeproblem('gradle-wrapper.jar', path_in_build_dir, filepath)
else:
warnproblem('JAR file', path_in_build_dir)
elif ext == 'aar': elif ext == 'aar':
warnproblem('AAR file', path_in_build_dir) warnproblem('AAR file', path_in_build_dir)