report_spyglass_lint.py: reject any increase in reported messages (#2816)

this will avoid any regression in linting
This commit is contained in:
André Sintzoff 2025-03-07 21:59:23 +01:00 committed by GitHub
parent 193756ad16
commit 9cd5c7711f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ def compare_summaries(baseline_info, new_info):
message = (
f"Count changed from {baseline_dict[key][0]} to {new_dict[key][0]}"
)
if key[0] == "ERROR" and new_dict[key][0] > baseline_dict[key][0]:
if new_dict[key][0] > baseline_dict[key][0]:
comparison_results.append((*key, *value, "FAIL", message))
else:
comparison_results.append((*key, *value, "PASS", message))