We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8044d commit 20503daCopy full SHA for 20503da
src/validation.sh
@@ -28,12 +28,14 @@ print_result () {
28
# When sarif-fmt is used, we need to generate SARIF file first
29
# only csgrep can utilize JSON output from csdiff
30
generate_SARIF "${results}" "tmp.sarif"
31
- sarif-fmt < "tmp.sarif"
+ sarif-fmt --color="always" < "tmp.sarif"
32
rm "tmp.sarif"
33
else
34
[[ $# -le 1 ]] && return 1
35
local context="$2"
36
37
+ defect=
38
+
39
csgrep --embed-context "${context}" "${results}"
40
fi
41
}
0 commit comments