Skip to content

Commit 8876c63

Browse files
committed
pass --color=always by default, for prettier log output
Unfortunately, the color seems to be the main way that severity of a message is communicated and so is moderately important. Someone can override this with a later `--color=never` (i.e. `shellcheck --color=always --color=never` doesn't emit any colours).
1 parent 4e87c2d commit 8876c63

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

hooks/command

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ if [[ -z ${files:-} ]] ; then
3434
exit 1
3535
fi
3636

37-
# Read in the options to pass to shellcheck
37+
# Read in the options to pass to shellcheck. Ask for color by default
38+
# for pretty online log display (but someone can override this with an
39+
# explicit `options: "--color=never"`)
40+
options=("--color=always")
3841
while IFS=$'\n' read -r option ; do
3942
options+=("$option")
4043
done < <(plugin_read_list OPTIONS)

0 commit comments

Comments
 (0)