Skip to content

Commit 20503da

Browse files
committed
color
1 parent 2a8044d commit 20503da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/validation.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ print_result () {
2828
# When sarif-fmt is used, we need to generate SARIF file first
2929
# only csgrep can utilize JSON output from csdiff
3030
generate_SARIF "${results}" "tmp.sarif"
31-
sarif-fmt < "tmp.sarif"
31+
sarif-fmt --color="always" < "tmp.sarif"
3232
rm "tmp.sarif"
3333
else
3434
[[ $# -le 1 ]] && return 1
3535
local context="$2"
3636

37+
defect=
38+
3739
csgrep --embed-context "${context}" "${results}"
3840
fi
3941
}

0 commit comments

Comments
 (0)