mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Misc fix
This commit is contained in:
parent
84d9a3a5c2
commit
9d88e90857
1 changed files with 5 additions and 5 deletions
|
@ -190,7 +190,7 @@ class Error(TestReport):
|
||||||
style = c.FAIL + " ✘ %s" + c.END
|
style = c.FAIL + " ✘ %s" + c.END
|
||||||
|
|
||||||
class Info(TestReport):
|
class Info(TestReport):
|
||||||
style = c.OKBLUE + " ⓘ %s" + c.END
|
style = " ⓘ %s" + c.END
|
||||||
|
|
||||||
class Success(TestReport):
|
class Success(TestReport):
|
||||||
style = c.OKGREEN + " ☺ %s ♥" + c.END
|
style = c.OKGREEN + " ☺ %s ♥" + c.END
|
||||||
|
@ -358,11 +358,11 @@ class App(TestSuite):
|
||||||
def qualify_for_level_7(self):
|
def qualify_for_level_7(self):
|
||||||
|
|
||||||
if tests_reports["error"]:
|
if tests_reports["error"]:
|
||||||
print(" Uhoh there are some errors to be fixed :(")
|
_print(" Uhoh there are some errors to be fixed :(")
|
||||||
elif len(tests_reports["warning"]) > 3:
|
elif len(tests_reports["warning"]) > 3:
|
||||||
print(" Still some warnings to be fixed :s")
|
_print(" Still some warnings to be fixed :s")
|
||||||
elif len(tests_reports["warning"]) > 0:
|
elif len(tests_reports["warning"]) > 0:
|
||||||
print(" Only %s warning remaining! You can do it!" % len(tests_reports["warning"]))
|
_print(" Only %s warning remaining! You can do it!" % len(tests_reports["warning"]))
|
||||||
else:
|
else:
|
||||||
yield Success("Not even a warning! Congratz and thank you for keeping that package up to date with good practices! This app qualifies for level 7!")
|
yield Success("Not even a warning! Congratz and thank you for keeping that package up to date with good practices! This app qualifies for level 7!")
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ class App(TestSuite):
|
||||||
catalog_infos = self.app_catalog.catalog_infos
|
catalog_infos = self.app_catalog.catalog_infos
|
||||||
is_maintained = catalog_infos and catalog_infos.get("maintained", True) is True
|
is_maintained = catalog_infos and catalog_infos.get("maintained", True) is True
|
||||||
if not is_maintained:
|
if not is_maintained:
|
||||||
print("The app is flagged as not maintained in the app catalog")
|
_print("The app is flagged as not maintained in the app catalog")
|
||||||
elif "qualify_for_level_7" in successes and "is_long_term_good_quality" in successes:
|
elif "qualify_for_level_7" in successes and "is_long_term_good_quality" in successes:
|
||||||
yield Success("The app is maintained and long-term good quality, and therefore qualifies for level 8!")
|
yield Success("The app is maintained and long-term good quality, and therefore qualifies for level 8!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue