mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report config panels version 0.1
This commit is contained in:
parent
8f6aada99a
commit
5c972a2607
1 changed files with 13 additions and 0 deletions
|
@ -540,6 +540,19 @@ class App(TestSuite):
|
|||
"Consider adding a change_url script to support changing where the app can be reached"
|
||||
)
|
||||
|
||||
@test()
|
||||
def config_panel(app):
|
||||
|
||||
if file_exists(app.path + "config_panel.json"):
|
||||
yield Info(
|
||||
"JSON config panels are not supported anymore, should be replaced by a toml version"
|
||||
)
|
||||
|
||||
if file_exists(app.path + "config_panel.toml") and os.system("grep -q 'version = \"0.1\"' '%s'" % (app.path + "config_panel.toml")) == 0:
|
||||
yield Info(
|
||||
"Config panels version 0.1 are not supported anymore, should be adapted for version 1.0"
|
||||
)
|
||||
|
||||
@test()
|
||||
def badges_in_readme(app):
|
||||
|
||||
|
|
Loading…
Reference in a new issue