forked from civiform/civiform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.shellcheckrc
More file actions
24 lines (17 loc) · 746 Bytes
/
.shellcheckrc
File metadata and controls
24 lines (17 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Customize the bash linter (https://github.com/koalaman/shellcheck)
# We remove some common errors that don't need warnings, and enable other
# optional patterns that should be enforced.
# Allow opening any 'source'd file, even if not specified as input
external-sources=true
# Turn on warnings for unquoted variables with safe values
enable=quote-safe-variables
# Turn on warnings for unassigned uppercase variables
enable=check-unassigned-uppercase
# Allow [ ! -z foo ] instead of suggesting -n
disable=SC2236
# Don't warn about masked return values in `export foo=$(exit 1)`
disable=SC2155
# Don't warn about using $? to check return values
disable=SC2181
# Don't warn about $/${} is unnecessary on arithmetic variables
disable=SC2004