mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Get a real parser, tidy
This commit is contained in:
parent
3bcf64be7b
commit
82714e08a1
1 changed files with 2 additions and 1 deletions
|
@ -398,7 +398,8 @@ def check_toml(file_name, lines):
|
|||
for idx, line in enumerate(lines):
|
||||
if idx == 0 and "[workspace]" in line:
|
||||
raise StopIteration
|
||||
if line.find("*") != -1:
|
||||
line_without_comment, _, _ = line.partition("#")
|
||||
if line_without_comment.find("*") != -1:
|
||||
yield (idx + 1, "found asterisk instead of minimum version number")
|
||||
for license_line in licenses_toml:
|
||||
ok_licensed |= (license_line in line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue