mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 13:17:41 -04:00
Add lambda function to sort lint summary according to severity (#2316)
This commit is contained in:
parent
f18bac51b3
commit
ace1643e91
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ def compare_summaries(baseline_info, new_info):
|
|||
f"Count changed from {baseline_dict[key][0]} to {new_dict[key][0]}"
|
||||
)
|
||||
comparison_results.append((*key, *value, "PASS", message))
|
||||
|
||||
severity_order = {"ERROR": 1, "WARNING": 2, "INFO": 3}
|
||||
comparison_results.sort(key=lambda x: severity_order[x[0]])
|
||||
|
||||
return comparison_results
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue