mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Complain about 'website' in the manifest pointing to a code repo
This commit is contained in:
parent
b0cde49675
commit
935a984e95
1 changed files with 4 additions and 0 deletions
|
@ -1581,6 +1581,10 @@ class Manifest(TestSuite):
|
|||
yield Error(
|
||||
"The field 'admindoc' should point to the **official** admin doc, not the YunoHost documentation. If there's no official admin doc, simply remove the admindoc key entirely."
|
||||
)
|
||||
if "github.com" in self.manifest["upstream"].get("website", ""):
|
||||
yield Warning(
|
||||
"The field 'website' is not meant to point to a code repository ... this is to be handled by the 'code' key ... If the app has no proper website, just remove the 'website' key entirely"
|
||||
)
|
||||
if "yunohost.org" in self.manifest["upstream"].get("userdoc", ""):
|
||||
yield Warning(
|
||||
"The field 'userdoc' should point to the **official** user doc, not the YunoHost documentation. (The default auto-generated README already includes a link to the yunohost doc page for this app). If there's no official user doc, simply remove the userdoc key entirely."
|
||||
|
|
Loading…
Add table
Reference in a new issue