Re: [PATCH] Set up 'make check' and add tab scanner.

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aZLioG4WtekPLrtF@qinghai>
On Mon, Feb 16, 2026 at 09:12:54AM +0100, Rene Kita wrote:
>Do you mean that 'unimportant issues' which got suppressed with this
>--exclude? I.e. we should be able to run shellcheck without the
>--exclude?

No, I get the following output when I run it on my (Arch) laptop, most 
of which don't seem to be things that are important to change:

$ make shellcheck
  cd . && /bin/sh /home/kjm/data/stow/home/dev/mutt/git/mutt/missing automake-1.18 --foreign Makefile
  cd . && /bin/sh ./config.status Makefile depfiles
config.status: creating Makefile
config.status: executing depfiles commands
(find . -name \*.sh && echo "gen_defs muttbug prepare") | xargs shellcheck --exclude=SC2003,SC2006,SC2086,SC2162,SC2046

In ./pre-commit.sh line 8:
cd $MUTTDIR
^---------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Did you mean:
cd $MUTTDIR || exit


In ./pre-commit.sh line 12:
   xargs -0 perl -n -e '/\t/ && die "tab found in $ARGV"'
                       ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.


In ./contrib/bgedit-screen-tmux.sh line 55:
if test x$STY != x; then
         ^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.

Did you mean:
if test $STY != ""; then


In ./contrib/bgedit-screen-tmux.sh line 57:
elif test x$TMUX != x; then
           ^----^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.

Did you mean:
elif test $TMUX != ""; then


In ./version.sh line 18:
[ x = "x$distance" ] && exec cat VERSION
   ^-- SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.

Did you mean:
[ "" = "$distance" ] && exec cat VERSION

For more information:
   https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...
   https://www.shellcheck.net/wiki/SC2016 -- Expressions don't expand in singl...
   https://www.shellcheck.net/wiki/SC2268 -- Avoid x-prefix in comparisons as ...

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmS4qAACgkQre92hIAx
a9oeNw//WizXlGNK1t7bfnlA0BuFgW52P8Ih9kMZV6DheO8H5z+zeqs5EVXn1GYq
nViDLYFMDdXhQ1cWPtd+8KSjP0Ij3QigVwY/Igo6+ZudalBKKuKUry9ULA/B0zNP
LQQKWwhZSyFMSvoG0Yrs3ENuEn0veAE5J1gpXur6T/VIuT8h79bBMXV95FHgnp39
rA/nlPkZGGXu8xgAmCzfgKJGI9/mfLx4f+ShCKXIg41yn+5qXI5jJOn6MaI65fIU
vB1wwYx8wfMAEwcX8k8cZRXUPxsy6dv8lUd8LB+G6J8e2rMKbUKQFncs8yVqZd9V
kPYqGzxb8qR/xpbPmz60IEZUzfE7STB7D79z/ZkcQCIfeYvR6ozY7bVAC/PXa9e3
CrvCE5ruSIUZkixt0EZW/3qLDvI5yYiffTv73u1r0h26vTIdGUfWOviMXWuGPMdk
LvBTfOEBqhuWmmDGuhJBJ3VB6M6bknqcKmcnx0kbCSFyV/I/0S3fJs/f6iVHrCJH
m2fMAlbEE4VvvT8rk9nvXLczsb2JlQu37is/XYQhSJzjOPzOda8OdxCO6XL8tvN+
/JgixX92MDvBxGCcZwR98Z7Lbd739H1GnyjiK34/12njORvWdrIZBO1pVhGOvE9u
WmdJJPVGmtCWtJA0e7Ogc+b89H9L8dratKBR4i8APkYUYa6bx4s=
=KImF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.