Skip to content

Commit 839da9c

Browse files
committed
Remove built-in shadow
1 parent fa46a50 commit 839da9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def main():
166166
if problems:
167167
found_problems = True
168168
log.warning("%d issues found during audit", len(problems))
169-
problem.dump_report(problems, file=None, format="csv")
169+
problem.dump_report(problems, file=None, fmt="csv")
170170
comment += build_jira_comments(problems)
171171
else:
172172
log.info("%d issues found during audit", len(problems))

sonar/audit/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def to_json(self, with_url=False):
6363

6464

6565
def dump_report(
66-
problems: list[Problem], file: str, server_id: Optional[str] = None, format: str = "csv", with_url: bool = False, separator: str = ","
66+
problems: list[Problem], file: str, server_id: Optional[str] = None, fmt: str = "csv", with_url: bool = False, separator: str = ","
6767
) -> None:
6868
"""Dumps to file a report about a list of problems
6969
@@ -74,7 +74,7 @@ def dump_report(
7474
:rtype: None
7575
"""
7676
log.info("Writing report to %s", f"file '{file}'" if file else "stdout")
77-
if format == "json":
77+
if fmt == "json":
7878
__dump_json(problems=problems, file=file, server_id=server_id, with_url=with_url)
7979
else:
8080
__dump_csv(problems=problems, file=file, server_id=server_id, with_url=with_url, separator=separator)

0 commit comments

Comments
 (0)