From 77d30ab4f801d4fe3cfdc385d0d558d9f8d9a527 Mon Sep 17 00:00:00 2001 From: Jiewei Qian Date: Mon, 25 Mar 2024 23:39:23 +0000 Subject: [PATCH] metadata: sort result summary This CL makes scan.py to sort result summary (keyed on the type of validation results), so the output summary will have a predictable order for easier diffing. Change-Id: I0eda8a439e159eae667729512424b813eb0f5e11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5390925 Auto-Submit: Jiewei Qian Commit-Queue: Jiewei Qian Reviewed-by: Anne Redulla --- metadata/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/scan.py b/metadata/scan.py index aba59f237..4387f6750 100644 --- a/metadata/scan.py +++ b/metadata/scan.py @@ -96,7 +96,7 @@ def main() -> None: count = len(results) plural = "s" if count > 1 else "" print(f"\n {count} issue{plural}: {summary_key}") - for result in results: + for result in sorted(results): print(f" {result}") print(f"\n\n{invalid_file_count} / {file_count} metadata files are "