summaryrefslogtreecommitdiff
path: root/.shellcheckrc
diff options
context:
space:
mode:
Diffstat (limited to '.shellcheckrc')
-rw-r--r--.shellcheckrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.shellcheckrc b/.shellcheckrc
new file mode 100644
index 0000000..75aca74
--- /dev/null
+++ b/.shellcheckrc
@@ -0,0 +1,11 @@
+# Suggest explicitly using -n in `[ $var ]`
+enable=avoid-nullary-conditions
+
+# Suggest 'command -v' instead of 'which'
+enable=deprecate-which
+
+# Suggest quoting variables without metacharacters
+enable=quote-safe-variables
+
+# Require [[ and warn about [ in Bash/Ksh
+enable=require-double-brackets