From 602f7e537a23a04163182da2a2383791a68c8de6 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 16 Feb 2024 16:48:27 +0100 Subject: [PATCH] Show line numbers in output log as well --- .github/workflows/syntax-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/syntax-checks.yml b/.github/workflows/syntax-checks.yml index b6294524c..7d3dc51e1 100644 --- a/.github/workflows/syntax-checks.yml +++ b/.github/workflows/syntax-checks.yml @@ -68,7 +68,7 @@ jobs: find . -path ./.git -prune -false -or -type f -name '*.sh' -print0 | xargs -0 shellcheck -xf json1 -S error -s bash > errors.json || error=$? # Produce code annotations in GitHub's format. - jq -r '.comments[] | "Error found in \(.file):\n::error file=\(.file),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn)::\(.message)"' errors.json + jq -r '.comments[] | "Error found in \(.file) line \(.line):\n::error file=\(.file),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn)::\(.message)"' errors.json exit "$error" pylint: @@ -91,5 +91,5 @@ jobs: # "import-errors" are shown for valid modules like ROOT, so ignore them. xargs -0 pylint -E -f json --disable import-error > errors.json || error=$? # Produce code annotations in GitHub's format. - jq -r '.[] | "Error found in \(.path):\n::error file=\(.path),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn),title=Pylint \(.type) \(.symbol)::\(.message)"' errors.json + jq -r '.[] | "Error found in \(.path) line \(.line):\n::error file=\(.path),line=\(.line),endLine=\(.endLine),col=\(.column),endColumn=\(.endColumn),title=Pylint \(.type) \(.symbol)::\(.message)"' errors.json exit "$error"