From be7f079c65e8473b70a24c5228a5da57e7cc337f Mon Sep 17 00:00:00 2001 From: Grigoris Pavlakis <grigpavl@ece.auth.gr> Date: Sat, 23 Mar 2019 17:48:24 +0200 Subject: [PATCH] Fix a bug caused by not converting number strings to numbers --- ci/summarizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/summarizer.py b/ci/summarizer.py index 80d20650..6436d36d 100755 --- a/ci/summarizer.py +++ b/ci/summarizer.py @@ -57,7 +57,7 @@ class Summarizer(object): print(self.bold + self.red + "=================================================\n" + self.end) print(self.bold + self.red + " Static analysis results: Error Summary \n" + self.end) for file_name in errors: - for error in sorted(errors[file_name], key=lambda x: x[0]): + for error in sorted(errors[file_name], key=lambda x: int(x[0])): name_string = f"{self.bold}{self.red}File {self.yellow}{file_name}{self.red}" rule_violated_string = f"violates rule {self.yellow}#{error[1]}{self.red} of the MISRA C 2012 standard" line_number_string = f"at line {self.yellow}{error[0]}{self.end}" -- GitLab