Skip to content

Commit c4d90a1

Browse files
Merge pull request #151 from melexis/fix-cq-report
FIX: Line properties in Code Quality report for PolyspaceChecker shall be integers
2 parents 11b7799 + 43072d8 commit c4d90a1

File tree

3 files changed

+238
-238
lines changed

3 files changed

+238
-238
lines changed

src/mlx/warnings/polyspace_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ def add_code_quality_finding(self, row):
245245
if row["file"]:
246246
finding["location"]["path"] = row["file"]
247247
if "line" in row:
248-
finding["location"]["positions"]["begin"]["line"] = row["line"]
248+
finding["location"]["positions"]["begin"]["line"] = int(row["line"])
249249
if "col" in row:
250-
finding["location"]["positions"]["begin"]["column"] = row["col"]
250+
finding["location"]["positions"]["begin"]["column"] = int(row["col"])
251251
finding["description"] = description
252252
exclude = ("new", "status", "severity", "comment", "key")
253253
row_without_key = [value for key, value in row.items() if key not in exclude]

0 commit comments

Comments
 (0)