Skip to content

Commit

Permalink
Fix: all line properties of code quality should be intergers
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Nov 18, 2024
1 parent 11b7799 commit 43072d8
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 238 deletions.
4 changes: 2 additions & 2 deletions src/mlx/warnings/polyspace_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ def add_code_quality_finding(self, row):
if row["file"]:
finding["location"]["path"] = row["file"]
if "line" in row:
finding["location"]["positions"]["begin"]["line"] = row["line"]
finding["location"]["positions"]["begin"]["line"] = int(row["line"])
if "col" in row:
finding["location"]["positions"]["begin"]["column"] = row["col"]
finding["location"]["positions"]["begin"]["column"] = int(row["col"])
finding["description"] = description
exclude = ("new", "status", "severity", "comment", "key")
row_without_key = [value for key, value in row.items() if key not in exclude]
Expand Down
Loading

0 comments on commit 43072d8

Please sign in to comment.