Allow APL text to start on the first text column

It would make files like this one valid:
https://github.com/openstack-infra/git-review/blob/master/git_review/cmd.py

Change-Id: Iab7e8baa184c2cd4fc88a4f911fa2609a7caa852
This commit is contained in:
Yuriy Taraday
2013-10-02 19:21:07 +04:00
parent 9c62571b9f
commit 53fc256154

View File

@@ -230,7 +230,7 @@ def hacking_has_license(physical_line, filename, lines, line_number):
for idx, line in enumerate(lines):
# if it's more than 10 characters in, it's probably not in the
# header
if 0 < line.find('Licensed under the Apache License') < 10:
if 0 <= line.find('Licensed under the Apache License') < 10:
license_found = True
if not license_found:
return (0, "H102: Apache 2.0 license header not found")