Skip to content

Commit 028ca0a

Browse files
committed
Format shellcheck native JSON report
1 parent d322a0d commit 028ca0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf/run_linters.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ flake8 --config "$CONFIG/.flake8" "$ROOTDIR" | tee "$flake8Report"
6161

6262
if [ "$localbuild" = "true" ]; then
6363
echo "===> Running shellcheck"
64-
shellcheck "$ROOTDIR"/*.sh "$ROOTDIR"/*/*.sh -s bash -f json | tee "$buildDir/shellcheck-report.txt" | "$CONFDIR"/shellcheck2sonar.py >"$shellcheckReport"
64+
shellcheck "$ROOTDIR"/*.sh "$ROOTDIR"/*/*.sh -s bash -f json | jq | tee "$buildDir/shellcheck-report.json" | "$CONFDIR"/shellcheck2sonar.py >"$shellcheckReport"
6565
[ ! -s "$shellcheckReport" ] && rm -f "$shellcheckReport"
66-
cat "$buildDir/shellcheck-report.txt"
66+
cat "$buildDir/shellcheck-report.json"
6767

6868
echo "===> Running checkov"
6969
checkov -d . --framework dockerfile -o sarif --output-file-path "$buildDir"

0 commit comments

Comments
 (0)