mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Encourage people to implement a change_url script
This commit is contained in:
parent
cd396af50e
commit
a374b997e0
1 changed files with 8 additions and 1 deletions
|
@ -326,6 +326,7 @@ class App(TestSuite):
|
||||||
print_header("MISC HELPER USAGE / CONSISTENCY")
|
print_header("MISC HELPER USAGE / CONSISTENCY")
|
||||||
self.run_tests()
|
self.run_tests()
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# _ _ _ #
|
# _ _ _ #
|
||||||
# | | | | | | #
|
# | | | | | | #
|
||||||
|
@ -436,7 +437,7 @@ class App(TestSuite):
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def misc_files(app):
|
def mandatory_scripts(app):
|
||||||
filenames = ("manifest.json", "LICENSE", "README.md",
|
filenames = ("manifest.json", "LICENSE", "README.md",
|
||||||
"scripts/install", "scripts/remove",
|
"scripts/install", "scripts/remove",
|
||||||
"scripts/upgrade",
|
"scripts/upgrade",
|
||||||
|
@ -446,6 +447,12 @@ class App(TestSuite):
|
||||||
if not file_exists(app.path + "/" + filename):
|
if not file_exists(app.path + "/" + filename):
|
||||||
yield Error("Providing %s is mandatory" % filename)
|
yield Error("Providing %s is mandatory" % filename)
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def change_url_script(app):
|
||||||
|
|
||||||
|
if not file_exists(app.path + "/scripts/change_url"):
|
||||||
|
yield Warning("Consider adding a change_url script to support changing where the app is installed")
|
||||||
|
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def misc_legacy_phpini(app):
|
def misc_legacy_phpini(app):
|
||||||
|
|
Loading…
Reference in a new issue