Skip to content

Commit 4803fed

Browse files
fix
1 parent 8a3555b commit 4803fed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exasol/toolbox/tools/security.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def from_maven(report: str) -> Iterable[Issue]:
100100
)
101101

102102

103-
def from_json(report: str) -> Iterable[Issue]:
104-
report = json.loads(report)
103+
def from_json(report_str: str) -> Iterable[Issue]:
104+
report = json.loads(report_str)
105105
issues = report.get("results", {})
106106
for issue in issues:
107107
references = []
@@ -117,7 +117,7 @@ def from_json(report: str) -> Iterable[Issue]:
117117
description=issue["issue_text"],
118118
coordinates=issue["filename"].replace(
119119
str(PROJECT_CONFIG.root) + "/", ""
120-
) + f":{issue["line_number"]}:{issue["col_offset"]}:",
120+
) + f":{str(issue["line_number"])}:{str(issue["col_offset"])}:",
121121
references=tuple(references)
122122
)
123123

0 commit comments

Comments
 (0)