-
Notifications
You must be signed in to change notification settings - Fork 7
/
dot.shellcheckrc
39 lines (29 loc) · 1.08 KB
/
dot.shellcheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
enable=add-default-case
enable=avoid-nullary-conditions
# enable=check-unassigned-uppercase
# enable=deprecate-which
# enable=quote-safe-variables
enable=require-variable-braces
# SC1090: Can't follow non-constant source. Use a directive to specify location
disable=SC1090
# SC2001: See if you can use ${variable//search/replace} instead.
disable=SC2001
# SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
disable=SC2002
# SC2004: $/${} is unnecessary on arithmetic variables.
disable=SC2004
# SC2046: Quote this to prevent word splitting.
# NOTE possibly enforce this
disable=SC2046
# SC2086: Double quote to prevent globbing and word splitting.
# NOTE possibly enforce this
disable=SC2086
# SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects.
disable=SC2129
# SC2155: Declare and assign separately to avoid masking return values.
# NOTE possibly enforce this
disable=SC2155
# SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
disable=SC2164
# SC2230: which is non-standard. Use builtin 'command -v' instead.
disable=SC2230