[PATCH v2 5/8] Add .shellcheckrc to ignore x-prefix warnings
Rene Kita <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
shellcheck warns: Avoid x-prefix in comparisons as it no longer serves a purpose. While this is true, it also does not really harm - besides some arguments about readability. As zsh fixed this only ~11 years ago, let's keep it for some years but silence shellcheck. Consensus on the mutt-dev ML was to keep using the x-prefix. Make sure it is ignored no matter how we invoke shellcheck. --- .shellcheckrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .shellcheckrc diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 00000000..e840fbc1 --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,2 @@ +# SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose. +disable=SC2268 -- 2.51.0