mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
All our Cargo.toml files should contain an MPL-2.0 license field.
This commit is contained in:
parent
86b2104f11
commit
62e95c5a61
42 changed files with 45 additions and 0 deletions
|
@ -295,9 +295,13 @@ duplicate versions for package "{package}"
|
|||
def check_toml(file_name, lines):
|
||||
if not file_name.endswith(".toml"):
|
||||
raise StopIteration
|
||||
mpl_licensed = False
|
||||
for idx, line in enumerate(lines):
|
||||
if line.find("*") != -1:
|
||||
yield (idx + 1, "found asterisk instead of minimum version number")
|
||||
mpl_licensed |= ('license = "MPL-2.0"' in line)
|
||||
if not mpl_licensed:
|
||||
yield (0, ".toml file should contain MPL-2.0 license.")
|
||||
|
||||
|
||||
def check_rust(file_name, lines):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue