Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simark@simark.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb] Add .shellcheckrc
Date: Tue, 1 Sep 2026 01:04:23 +0200	[thread overview]
Message-ID: <dc1e95c0-53b7-45b6-acc5-553ae3266515@suse.de> (raw)
In-Reply-To: <6165e6ce-5798-4930-95bc-9d146449d091@simark.ca>

On 8/31/26 10:05 PM, Simon Marchi wrote:
> On 8/31/26 4:22 AM, Tom de Vries wrote:
>> I came across an inconsistency between shellcheck versions 0.10.0 and 0.11.0.
>>
>> Version v0.11.0 disables SC2002 (Useless use of cat) by default.
>>
>> Fix this inconsistency by enabling it by default in gdb/.shellcheckrc.
>>
>> Add symlinks at {gdbserver,gdbsupport}/.shellcheckrc.
>>
>> These symlinks will be expanded to regular files in the tarballs as produced
>> by src-release.sh due to using "tar -h".
> 
> Approved-By: Simon Marchi <simon.marchi@efficios.com>
> 
> I did not know there were optionl / disabled by default rules.
> 
> https://github.com/koalaman/shellcheck/wiki/Optional
> 
> I think we should look at enabling some of them.
> 

Hi Simon,

thanks for the review, I've pushed this.

I agree we could look into optional rules (perhaps a good moment is once 
all scripts are shellcheck-clean).

FWIW, I wish something opposite to require-variable-braces would be 
available.

Thanks,
- Tom

> Simon


  reply	other threads:[~2026-08-31 23:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31  8:22 Tom de Vries
2026-08-31 20:05 ` Simon Marchi
2026-08-31 23:04   ` Tom de Vries [this message]
2026-09-01 16:25 ` Tom Tromey
2026-09-01 16:27   ` Tom de Vries
2026-09-01 21:37     ` Tom de Vries

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=dc1e95c0-53b7-45b6-acc5-553ae3266515@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /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