-
Notifications
You must be signed in to change notification settings - Fork 2
/
.shellcheckrc
29 lines (23 loc) · 877 Bytes
/
.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
# shellcheck configuration file. See
# https://github.com/koalaman/shellcheck/blob/master/shellcheck.1.md#rc-files
check-sourced=true
shell=bash
severity=style
# Suggest adding a default case in `case` statements
# Example: case $? in 0) echo 'Success';; esac
# Fix: case $? in 0) echo 'Success';; *) echo 'Fail' ;; esac
enable=add-default-case
# Suggest explicitly using -n in `[ $var ]`
# Example: [ "$var" ]
# Fix: [ -n "$var" ]
enable=avoid-nullary-conditions
# Suggest quoting variables without metacharacters
# Example: var=hello; echo $var
# Fix: var=hello; echo "$var"
enable=quote-safe-variables
# Suggest putting braces around all variable references
# Example: var=hello; echo $var
# Fix: var=hello; echo ${var}
enable=require-variable-braces
# SC2230: `which` is non-standard. Use builtin `command -v` instead.
disable=SC2230