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

Line numbers start at 1, not 0

This commit is contained in:
Daniel Martí 2015-08-14 10:30:27 -07:00
parent bb2598d358
commit 6cc91e2ded

View File

@ -1602,7 +1602,7 @@ def scan_source(build_dir, root_dir, thisbuild):
continue continue
for i, line in enumerate(file(fp)): for i, line in enumerate(file(fp)):
if any(suspect.match(line) for suspect in usual_suspects): if any(suspect.match(line) for suspect in usual_suspects):
count += handleproblem('usual suspect at line %d' % i, fd, fp) count += handleproblem('usual suspect at line %d' % i+1, fd, fp)
break break
for p in scanignore: for p in scanignore: