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