|
|
f709f2 |
From 9914a76e5748beae9662a0e44b1674249b778424 Mon Sep 17 00:00:00 2001
|
|
|
f709f2 |
From: Pavel Valena <pvalena@redhat.com>
|
|
|
f709f2 |
Date: Mon, 15 Aug 2022 10:44:35 +0200
|
|
|
f709f2 |
Subject: [PATCH] ci: check out .shellcheckrc from upstream
|
|
|
f709f2 |
|
|
|
f709f2 |
To avoid ShellCheck false positives.
|
|
|
f709f2 |
|
|
|
f709f2 |
https://github.com/redhat-plumbers/dracut-rhel8/pull/18
|
|
|
f709f2 |
|
|
|
f709f2 |
rhel-only
|
|
|
f709f2 |
---
|
|
|
f709f2 |
.shellcheckrc | 34 ++++++++++++++++++++++++++++++++++
|
|
|
f709f2 |
1 file changed, 34 insertions(+)
|
|
|
f709f2 |
|
|
|
f709f2 |
diff --git a/.shellcheckrc b/.shellcheckrc
|
|
|
f709f2 |
new file mode 100644
|
|
|
f709f2 |
index 00000000..ce5c883b
|
|
|
f709f2 |
--- /dev/null
|
|
|
f709f2 |
+++ b/.shellcheckrc
|
|
|
f709f2 |
@@ -0,0 +1,34 @@
|
|
|
f709f2 |
+# SC2039: In POSIX sh, 'local' is undefined.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC2039
|
|
|
f709f2 |
+disable=SC2039
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC2166
|
|
|
f709f2 |
+disable=SC2166
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC2154: Variable is referenced but not assigned
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC2154
|
|
|
f709f2 |
+disable=SC2154
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC1091: Not following <file>
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC1091
|
|
|
f709f2 |
+disable=SC1091
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC2174: When used with -p, -m only applies to the deepest directory.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC2174
|
|
|
f709f2 |
+disable=SC2174
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC3043: In POSIX sh, 'local' is undefined.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC3043
|
|
|
f709f2 |
+# ... but dash supports it
|
|
|
f709f2 |
+disable=SC3043
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC3013: In POSIX sh, -ef is undefined.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC3013
|
|
|
f709f2 |
+# ... but dash supports it
|
|
|
f709f2 |
+disable=SC3013
|
|
|
f709f2 |
+
|
|
|
f709f2 |
+# SC3045: In POSIX sh, read -p is undefined.
|
|
|
f709f2 |
+# https://github.com/koalaman/shellcheck/wiki/SC3045
|
|
|
f709f2 |
+# ... but dash supports it
|
|
|
f709f2 |
+disable=SC3045
|