From 4d6f308f5c14169e9e451e1a50fb75c7a88f036c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 10 Oct 2021 13:54:09 +0200 Subject: [PATCH] Add 'n possible improvements' corresponding to linter info in test summary --- lib/analyze_test_results.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/analyze_test_results.py b/lib/analyze_test_results.py index 3b2f25c..ef5ae91 100644 --- a/lib/analyze_test_results.py +++ b/lib/analyze_test_results.py @@ -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"): yield '%s warnings' % 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"): yield 'Missing witness file'