| Message ID | 20250321144251.23618-1-tdevries@suse.de |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 777593857C7F for <patchwork@sourceware.org>; Fri, 21 Mar 2025 15:44:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 777593857C7F Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=oJxwcgLB; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Tqj2cWYZ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=oJxwcgLB; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Tqj2cWYZ X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id B21663858D26 for <gdb-patches@sourceware.org>; Fri, 21 Mar 2025 14:42:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B21663858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B21663858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742568177; cv=none; b=G9mHKBI2k+jyf0g3HI5Hnubx5xS8oz0xhJbYDa9RDEreqeD8CvrT+tPtS8lxnwR4wD8FEZX4KnWOYqcdbB0RXwvHAdD2x95t7nokl0DuLWlmaJnATDF1KkijPilRtUaB58dSPX4G21SUGuigpvog1z6/DqIcDjwImKBE++VInTo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742568177; c=relaxed/simple; bh=NOR7pToTCvSKbvsXIvyf9ldvSCvNPe2bH0M3q2LduuQ=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=nV8WT7pkqZgUbKyx5OMDiRHxe0LNt0I7Rxybl/J8dx+wVtT9q39GuGE8ELqblITX8XuMcf5vHBo0a8bh/shvxgkmqE/gNE3I8MrFv8SSLURxHTUgcyvIHTle0NK3fpWbE7Z/kTnMjRhW66qtJ52r6AmLkMSJMu10cBsEfr4IoTg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D0B641F443 for <gdb-patches@sourceware.org>; Fri, 21 Mar 2025 14:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1742568151; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0leuidBvRWpea/ch4DsyzYR846sn6ovvWvb+gVK4+6I=; b=oJxwcgLBwyYztRwYcVkLI3jD74FsevMkheRQpZmedgdE47p535DUdleh9UcEyLa0I69RTh 26Z7oooqZvASxVY0pQpO2pqLd7ffkLIp5M/QcsEVOLtc2nvBngrEmmFdonnxHpREwcMV5+ pgEyuGfObQQ/kdKN8sESrp78JtxFaP4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1742568151; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0leuidBvRWpea/ch4DsyzYR846sn6ovvWvb+gVK4+6I=; b=Tqj2cWYZBw5uv4vMZPZP6bLjuKD4O3Pm05idXcIwuHX4XDJXH60sFRFg/FomTgkS8KKbru lZ0yV84Sc9AIZWCw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1742568151; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0leuidBvRWpea/ch4DsyzYR846sn6ovvWvb+gVK4+6I=; b=oJxwcgLBwyYztRwYcVkLI3jD74FsevMkheRQpZmedgdE47p535DUdleh9UcEyLa0I69RTh 26Z7oooqZvASxVY0pQpO2pqLd7ffkLIp5M/QcsEVOLtc2nvBngrEmmFdonnxHpREwcMV5+ pgEyuGfObQQ/kdKN8sESrp78JtxFaP4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1742568151; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0leuidBvRWpea/ch4DsyzYR846sn6ovvWvb+gVK4+6I=; b=Tqj2cWYZBw5uv4vMZPZP6bLjuKD4O3Pm05idXcIwuHX4XDJXH60sFRFg/FomTgkS8KKbru lZ0yV84Sc9AIZWCw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id AFB5A13A2C for <gdb-patches@sourceware.org>; Fri, 21 Mar 2025 14:42:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id cPo7Kdd63WfhBQAAD6G6ig (envelope-from <tdevries@suse.de>) for <gdb-patches@sourceware.org>; Fri, 21 Mar 2025 14:42:31 +0000 From: Tom de Vries <tdevries@suse.de> To: gdb-patches@sourceware.org Subject: [PATCH 0/5] [pre-commit] Add codespell hook Date: Fri, 21 Mar 2025 15:42:46 +0100 Message-ID: <20250321144251.23618-1-tdevries@suse.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.80 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series | Add codespell hook | |
Message
Tom de Vries
March 21, 2025, 2:42 p.m. UTC
This patch series contains:
- 4 patches that make gdbsupport and gdbserver codespell-clean (with
codespell v2.4.1), and
- a patch that adds a pre-commit codespell hook for those directories.
I've submitted a related RFC [1] a while back that tried hard to be
non-intrusive on codespell-unclean directories, but consequently was a bit
convoluted.
This patch series instead uses a straightforward approach on codespell-clean
directories.
[1] https://inbox.sourceware.org/gdb-patches/20241129161707.25292-1-tdevries@suse.de/#r
Tom de Vries (5):
[gdbsupport] Fix a typo in common-debug.h
[gdbsupport] Ignore pathc in codespell check in gdb_tilde_expand.cc
[gdbserver] Fix typo in tracepoint.cc
[gdb/contrib] Add SME to codespell-ignore-words.txt
[precommit] Add codespell hook
.pre-commit-config.yaml | 6 ++++++
gdb/contrib/codespell-ignore-words.txt | 1 +
{gdbserver => gdb/contrib}/setup.cfg | 4 +++-
gdbserver/tracepoint.cc | 2 +-
gdbsupport/agent.cc | 1 +
gdbsupport/common-debug.h | 2 +-
gdbsupport/gdb_tilde_expand.cc | 4 ++--
gdbsupport/setup.cfg | 4 ----
8 files changed, 15 insertions(+), 9 deletions(-)
rename {gdbserver => gdb/contrib}/setup.cfg (64%)
delete mode 100644 gdbsupport/setup.cfg
base-commit: daf53ffeaa968694f783d4ad6ee0531b9f2bd9a6
Comments
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> This patch series contains:
Tom> - 4 patches that make gdbsupport and gdbserver codespell-clean (with
Tom> codespell v2.4.1), and
Tom> - a patch that adds a pre-commit codespell hook for those directories.
I read through this. I'm in favor of the idea and I think the patches
look good. I would suggest waiting a little while for others to comment
before checking this in though, in case anyone has concerns -- adding a
new hook here does impose a cost on everybody using the feature.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
On 3/21/25 17:17, Tom Tromey wrote: >>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes: > > Tom> This patch series contains: > Tom> - 4 patches that make gdbsupport and gdbserver codespell-clean (with > Tom> codespell v2.4.1), and > Tom> - a patch that adds a pre-commit codespell hook for those directories. > > I read through this. I'm in favor of the idea and I think the patches > look good. I would suggest waiting a little while for others to comment > before checking this in though, in case anyone has concerns -- adding a > new hook here does impose a cost on everybody using the feature. Hi Tom, thanks for the reviews. I've pushed the first four patches of the series, and will wait till Monday to commit the fifth (minus the simulated typo that Thiago noticed). [ I'm expecting there might be concerns raised after committing regardless of how long I wait, so I'm not sure waiting much longer makes sense ]. Agreed, there will be a cost to keeping gdbserver/gdbsupport codespell clean, but hopefully also a benefit. I guess experience will have to tell which one will outweigh the other. Thanks, - Tom > Approved-By: Tom Tromey <tom@tromey.com> > > Tom