mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Check 'maintainers' key contain sensible values
This commit is contained in:
parent
8a22ded3f0
commit
428f125065
1 changed files with 9 additions and 0 deletions
|
@ -1790,6 +1790,15 @@ class Manifest(TestSuite):
|
|||
if "license" not in self.manifest.get("upstream"):
|
||||
yield Error("The license key in the upstream section is missing")
|
||||
|
||||
@test()
|
||||
def maintainer_sensible_values(self):
|
||||
if "maintainers" in self.manifest.keys():
|
||||
for value in self.manifest["maintainers"]:
|
||||
if not value.strip():
|
||||
yield Warning("Please don't put empty string as a maintainer x_x")
|
||||
elif "," in value:
|
||||
yield Warning("Please don't use comma in maintainers value, this is supposed to be a list such as ['foo', bar'], not ['foo, bar'] x_x")
|
||||
|
||||
@test()
|
||||
def upstream_fields(self):
|
||||
if "upstream" not in self.manifest.keys():
|
||||
|
|
Loading…
Reference in a new issue