summaryrefslogtreecommitdiff
path: root/.shellcheckrc
diff options
context:
space:
mode:
Diffstat (limited to '.shellcheckrc')
-rw-r--r--.shellcheckrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.shellcheckrc b/.shellcheckrc
new file mode 100644
index 0000000..5c7220e
--- /dev/null
+++ b/.shellcheckrc
@@ -0,0 +1,13 @@
+# We use POSIX sh as a baseline.
+shell=sh
+
+# Be extra careful.
+enable=require-variable-braces
+enable=quote-safe-variables
+enable=avoid-nullary-conditions
+enable=check-unassigned-uppercase
+
+# SC2039 - The only extension of POSIX sh that we use is `local`, allow it.
+# SC1091 - False-positives due to use of @@.*@@ consts replaced during `make`.
+disable=SC2039
+disable=SC1091