Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis-Mittenzwei committed Oct 2, 2024
1 parent 8a3555b commit 4803fed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exasol/toolbox/tools/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def from_maven(report: str) -> Iterable[Issue]:
)


def from_json(report: str) -> Iterable[Issue]:
report = json.loads(report)
def from_json(report_str: str) -> Iterable[Issue]:
report = json.loads(report_str)
issues = report.get("results", {})
for issue in issues:
references = []
Expand All @@ -117,7 +117,7 @@ def from_json(report: str) -> Iterable[Issue]:
description=issue["issue_text"],
coordinates=issue["filename"].replace(
str(PROJECT_CONFIG.root) + "/", ""
) + f":{issue["line_number"]}:{issue["col_offset"]}:",
) + f":{str(issue["line_number"])}:{str(issue["col_offset"])}:",
references=tuple(references)
)

Expand Down

0 comments on commit 4803fed

Please sign in to comment.