Skip to content

Commit 53a7647

Browse files
authored
Merge pull request #17 from huonw/options
document `options`, and pass --color=always by default
2 parents ca741f7 + 8876c63 commit 53a7647

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ steps:
1919

2020
The files (or globs) to run shellcheck on
2121

22+
### `options`
23+
24+
Any options to pass to shellcheck
25+
2226
## License
2327

2428
MIT (see [LICENSE](LICENSE))

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)