mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Promote some Info to Warning because the vast majority of level 7+ apps satisfy these
This commit is contained in:
parent
0dc32a65bd
commit
8fb895d258
1 changed files with 4 additions and 4 deletions
|
@ -1454,7 +1454,7 @@ class Script(TestSuite):
|
||||||
"Use grep -q 'id: $appname' to check a specific app is installed"
|
"Use grep -q 'id: $appname' to check a specific app is installed"
|
||||||
)
|
)
|
||||||
if self.contains("--others_var"):
|
if self.contains("--others_var"):
|
||||||
yield Info("Option --others_var is deprecated / irrelevant since 4.2, Yunohost now manages conf using ynh_add_config which automatically replace all __FOOBAR__ by $foobar")
|
yield Warning("Option --others_var is deprecated / irrelevant since 4.2, and will be removed in Bullseye. Yunohost now manages conf using ynh_add_config which automatically replace all __FOOBAR__ by $foobar")
|
||||||
|
|
||||||
@test(only=["install", "upgrade"])
|
@test(only=["install", "upgrade"])
|
||||||
def deprecated_replace_string(self):
|
def deprecated_replace_string(self):
|
||||||
|
@ -1514,7 +1514,7 @@ class Script(TestSuite):
|
||||||
|
|
||||||
if any("-q" not in cmd for cmd in systemctl_enable):
|
if any("-q" not in cmd for cmd in systemctl_enable):
|
||||||
message = "Please add --quiet to systemctl enable/disable commands to avoid unecessary warnings when the script runs"
|
message = "Please add --quiet to systemctl enable/disable commands to avoid unecessary warnings when the script runs"
|
||||||
yield Warning(message) if self.name in ["_common.sh", "install"] else Info(message)
|
yield Warning(message)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def quiet_wget(self):
|
def quiet_wget(self):
|
||||||
|
@ -1525,7 +1525,7 @@ class Script(TestSuite):
|
||||||
|
|
||||||
if any(" -q " not in cmd and "--quiet" not in cmd and "2>" not in cmd for cmd in wget_cmds):
|
if any(" -q " not in cmd and "--quiet" not in cmd and "2>" not in cmd for cmd in wget_cmds):
|
||||||
message = "Please redirect wget's stderr to stdout with 2>&1 to avoid unecessary warnings when the script runs (yes, wget is annoying and displays a warning even when things are going okay >_> ...)"
|
message = "Please redirect wget's stderr to stdout with 2>&1 to avoid unecessary warnings when the script runs (yes, wget is annoying and displays a warning even when things are going okay >_> ...)"
|
||||||
yield Warning(message) if self.name in ["_common.sh", "install"] else Info(message)
|
yield Warning(message)
|
||||||
|
|
||||||
@test(only=["install"])
|
@test(only=["install"])
|
||||||
def argument_fetching(self):
|
def argument_fetching(self):
|
||||||
|
@ -1650,7 +1650,7 @@ class Script(TestSuite):
|
||||||
return
|
return
|
||||||
|
|
||||||
if len(weights) > 3 and statistics.stdev(weights) > 50:
|
if len(weights) > 3 and statistics.stdev(weights) > 50:
|
||||||
yield Info("To have a meaningful progress bar, try to keep the weights in the same range of values, for example [1,10], or [10,100]... otherwise, if you have super-huge weight differentes, the progress bar rendering will be completely dominated by one or two steps... If these steps are really long, just try to indicated in the message that this will take a while.")
|
yield Warning("To have a meaningful progress bar, try to keep the weights in the same range of values, for example [1,10], or [10,100]... otherwise, if you have super-huge weight differentes, the progress bar rendering will be completely dominated by one or two steps... If these steps are really long, just try to indicated in the message that this will take a while.")
|
||||||
|
|
||||||
@test(only=["install", "_common.sh"])
|
@test(only=["install", "_common.sh"])
|
||||||
def php_deps(self):
|
def php_deps(self):
|
||||||
|
|
Loading…
Reference in a new issue