mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Add 'n possible improvements' corresponding to linter info in test summary
This commit is contained in:
parent
d086e2ccbb
commit
4d6f308f5c
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ def test_notes(test):
|
||||||
if test["test_type"] == "PACKAGE_LINTER" and test['results']['main_result'] == 'success' and test['results'].get("warning"):
|
if test["test_type"] == "PACKAGE_LINTER" and test['results']['main_result'] == 'success' and test['results'].get("warning"):
|
||||||
yield '<style=warning>%s warnings</style>' % len(test['results'].get("warning"))
|
yield '<style=warning>%s warnings</style>' % len(test['results'].get("warning"))
|
||||||
|
|
||||||
|
if test["test_type"] == "PACKAGE_LINTER" and test['results']['main_result'] == 'success' and test['results'].get("info"):
|
||||||
|
yield '%s possible improvements' % len(set(test['results'].get("info")))
|
||||||
|
|
||||||
if test['results'].get("witness"):
|
if test['results'].get("witness"):
|
||||||
yield '<style=danger>Missing witness file</style>'
|
yield '<style=danger>Missing witness file</style>'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue