Skip to content

Commit 4666e04

Browse files
committed
tools: Update tidy.sh and related configs
1 parent 400052b commit 4666e04

File tree

3 files changed

+898
-287
lines changed

3 files changed

+898
-287
lines changed

.editorconfig

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ indent_style = space
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
1313

14-
[*.{json,md,rb,sh,yml,yaml}]
14+
[*.{css,html,json,md,rb,sh,yml,yaml}]
1515
indent_size = 2
1616

1717
[*.{js,yml,yaml}]
1818
quote_type = single
1919

2020
[*.sh]
21+
# https://google.github.io/styleguide/shellguide.html#s5.3-pipelines
2122
binary_next_line = true
23+
# https://google.github.io/styleguide/shellguide.html#s5.5-case-statement
2224
switch_case_indent = true

.shellcheckrc

+24-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,34 @@
22
# https://github.com/koalaman/shellcheck/blob/HEAD/shellcheck.1.md#rc-files
33

44
# See also:
5-
# https://www.shellcheck.net/wiki/Optional
5+
# https://github.com/koalaman/shellcheck/wiki/Optional
66
# https://google.github.io/styleguide/shellguide.html
77

8-
# https://www.shellcheck.net/wiki/SC2292
8+
# https://github.com/koalaman/shellcheck/wiki/SC2249
9+
# enable=add-default-case
10+
11+
# https://github.com/koalaman/shellcheck/wiki/SC2244
12+
enable=avoid-nullary-conditions
13+
14+
# https://github.com/koalaman/shellcheck/wiki/SC2312
15+
# enable=check-extra-masked-returns
16+
17+
# https://github.com/koalaman/shellcheck/wiki/SC2310
18+
# https://github.com/koalaman/shellcheck/wiki/SC2311
19+
# enable=check-set-e-suppressed
20+
21+
# enable=check-unassigned-uppercase
22+
23+
# https://github.com/koalaman/shellcheck/wiki/SC2230
24+
enable=deprecate-which
25+
26+
# https://github.com/koalaman/shellcheck/wiki/SC2248
27+
enable=quote-safe-variables
28+
29+
# https://github.com/koalaman/shellcheck/wiki/SC2292
930
# https://google.github.io/styleguide/shellguide.html#s6.3-tests
1031
enable=require-double-brackets
1132

12-
# https://www.shellcheck.net/wiki/SC2250
33+
# https://github.com/koalaman/shellcheck/wiki/SC2250
1334
# https://google.github.io/styleguide/shellguide.html#s5.6-variable-expansion
1435
enable=require-variable-braces

0 commit comments

Comments
 (0)