From bad24ebfa4d87d15bfe464d78466f9d30242d4ad Mon Sep 17 00:00:00 2001 From: Jannis Mittenzwei Date: Tue, 24 Dec 2024 08:33:19 +0100 Subject: [PATCH] fix --- exasol/toolbox/tools/lint.py | 4 ++-- test/unit/lint_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exasol/toolbox/tools/lint.py b/exasol/toolbox/tools/lint.py index d2cfcdd74..25fe08f36 100644 --- a/exasol/toolbox/tools/lint.py +++ b/exasol/toolbox/tools/lint.py @@ -45,7 +45,7 @@ def lint_issue_from_json(data: str) -> Iterable[LintIssue]: def lint_issue_to_markdown(lint_issues: Iterable[LintIssue]) -> str: def _header() -> str: header = "# Static Code Analysis\n\n" - header += "|File|line/ column|id|message|\n" + header += "|File|line/
column|id|message|\n" header += "|---|:-:|:-:|---|\n" return header @@ -53,7 +53,7 @@ def _rows(issues: Iterable[LintIssue]) -> str: rows = "" for issue in issues: rows += f"|{issue.path}" - rows += f"|line: {issue.line}/
column: {issue.column}/" + rows += f"|line: {issue.line}/
column: {issue.column}" rows += f"|{issue.message_id}" rows += f"|{issue.message}|\n" return rows diff --git a/test/unit/lint_test.py b/test/unit/lint_test.py index 62d1822c6..429a51612 100644 --- a/test/unit/lint_test.py +++ b/test/unit/lint_test.py @@ -60,9 +60,9 @@ def test_lint_issue_from_json(data): }, """# Static Code Analysis -|File|line
column|id|message| +|File|line/
column|id|message| |---|:-:|:-:|---| -|test_path|line: 0
column: 1|test_message_id|test_message| +|test_path|line: 0/
column: 1|test_message_id|test_message| """, ) ],