Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
	Simon Marchi <simark@simark.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [pre-commit] Add shellcheck
Date: Thu, 30 Jul 2026 15:10:24 +0200	[thread overview]
Message-ID: <53b3354a-22da-4719-8e6a-af28d33a194f@suse.de> (raw)
In-Reply-To: <6174eca4-a189-4f38-bd69-a6312c361d20@suse.de>

On 6/22/26 12:02 PM, Tom de Vries wrote:
> We could do something similar (no downloading) for shellcheck:
> ...
> diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
> index 9910bbb82f2..92c56d95977 100644
> --- a/.pre-commit-config.yaml
> +++ b/.pre-commit-config.yaml
> @@ -130,3 +130,10 @@ repos:
>         language: unsupported_script
>         entry: gdb/contrib/check-file-mode.sh
>         files: '^(gdb|gdbserver|gdbsupport)/.*$'
> +    - id: &id5 shellcheck
> +      name: *id5
> +      language: unsupported
> +      entry: shellcheck
> +      files: '^(gdb|gdbsupport|gdbserver)/'
> +      types: ['shell']
> +      exclude: '^(gdb/config/djgpp/(djcheck.sh|djconfig.sh)|gdb/ 
> contrib/ari/(create-web-ari-
> in-src.sh|gdb_ari.sh|update-web-ari.sh)|gdb/contrib/(cc-with-tweaks.sh| 
> gdb-add-index.sh)|gdb/gdb_builda
> ll.sh|gdb/gdb_mbuild.sh|gdb/regformats/regdat.sh|gdb/po/gdbtext|gdb/ 
> testsuite/lib/pdtrace.in)$|/configu
> re$'
> ...
> 
> This means there's no easy installation, people have to install it 
> themselves.
> 
> There's also no version pinning.  We could add a script that does a 
> version check though, and check for version 0.11.0.
> 
I ended up using roughly this approach in a v3 ( 
https://sourceware.org/pipermail/gdb-patches/2026-July/229090.html ) but 
allowing both 0.10.0 and 0.11.0.

Thanks,
- Tom

      reply	other threads:[~2026-07-30 13:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18 15:19 Tom de Vries
2026-06-18 17:05 ` Simon Marchi
2026-06-19 11:19   ` Tom de Vries
2026-06-19 17:56     ` Simon Marchi
2026-06-22  8:58       ` Tom de Vries
2026-07-30 10:58         ` Tom de Vries
2026-06-22  5:48   ` Thiago Jung Bauermann
2026-06-22 10:02     ` Tom de Vries
2026-07-30 13:10       ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53b3354a-22da-4719-8e6a-af28d33a194f@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    --cc=thiago.bauermann@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox