From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cDQrOuI2Tmds3wAA62LTzQ:P1 (envelope-from ) for ; Mon, 02 Dec 2024 22:38:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cDQrOuI2Tmds3wAA62LTzQ (envelope-from ) for ; Mon, 02 Dec 2024 23:38:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aA2e9fqL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733179099; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8Crk6W36Y3jopHlCZiaXLC78ugt4ZoMqNxm0jtXtPj4=; b=Vh4b3YG5RRZ42AGjGoypN8y+MfqHvoJ2NmYz9am+tC1ICRRzu3m6mTFkyT3gRxg+VSjGIS V0Ahg8UVeSwVUNN4Vd1Xi4wA4wMZ5NSEwKyeL4ZIWonz3726q0EXT9FKIKaAhSlu/gY6R1 zD9eHhBhv6JVvyc6I1PNBNce7Ol47adYCy0yl2FSojkwDz9KAST3A/2k9RPTex1uFnlhf7 f8DQXJGtXJsXd2/mxeCTNewVy4O8Zn0F8L7ZQ2qVjWEwcANK4x3xnVkJzgPqSx0AJ78/eU DBVDFjwaefew11nXkllM1LOBadeF3DjjxsjjccDprO3lqEDDYp125bUOiu5Oiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aA2e9fqL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733179099; a=rsa-sha256; cv=none; b=hhfwI6hy9U7h0emvaKQ4kRYg+diLNm5zo1eyEv6h5udKwDLKrG15AaRd0es9npEkEokGSu iuczCBXoIro6PjObhudldIKJ3WBYQGEDg9mQprR+XmAHkhF+Ib8puNn8aiwOHkZYBaMv0w 9qm+rLdLEZkLnCTLGgeWa8kQgGCwij1A/m0F3ihYpZWldSe1aOt/t44scfxMTJT/VhawHG dM//5kiD0uT594eC1UMknf/dqTQXaYyFP1Fv2PuUrZo1xUqDjVZBV2v8XtWY5Gk1bCx6pz atAiYOxstEGH6iuMiX9bv3v7IGWE6YZ1JO2khHj+Pz97ZF+b6ZcUscl4pFDQmQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4EC798929F for ; Mon, 02 Dec 2024 23:38:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIF3L-0007eF-Ci; Mon, 02 Dec 2024 17:38:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIF3K-0007e7-HQ for guix-patches@gnu.org; Mon, 02 Dec 2024 17:38:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIF3K-00067O-4g for guix-patches@gnu.org; Mon, 02 Dec 2024 17:38:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:In-Reply-To:References:Subject; bh=8Crk6W36Y3jopHlCZiaXLC78ugt4ZoMqNxm0jtXtPj4=; b=aA2e9fqLeaIBkGhjsSSSsRYNq/fBtmu+w7JL7SMHwBKXBhIkfameEOVXfla2Zs8MkSBA4mqLSpkugnnkYbMd3lMNbaQ0OPGRUKm7ZLTq/vCQr6dM0d1PmnsxgiFHpUHgNjG+rNgvZrbD2vDQLCV5LqxvEcM+HGQIBwmyM3J/ZmRIX8A7udsN4QVRJeF+M1NlHIMUgoOnrtxpNtRtesTcfofuh3TLEbA14Z8Hembhc0ySLcD189f1oy9/CgtTnvMaNhiTtor2Xf1JIEVfOayeaEw+8DTrA2pOd31GWcRc1Q8dZkpgZ69b+ylJ1I/KLO1sJWjjoHH0z4V+dK9e/M1CQg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIF3J-00045y-VN for guix-patches@gnu.org; Mon, 02 Dec 2024 17:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74459] [PATCH v2 4/7] guix: lint: Allow texinfo markup at beginning of synopsis. References: In-Reply-To: Resent-From: Gabriel Wicki Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Dec 2024 22:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74459 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74459@debbugs.gnu.org Received: via spool by 74459-submit@debbugs.gnu.org id=B74459.173317907115721 (code B ref 74459); Mon, 02 Dec 2024 22:38:01 +0000 Received: (at 74459) by debbugs.gnu.org; 2 Dec 2024 22:37:51 +0000 Received: from localhost ([127.0.0.1]:56876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIF39-00045V-9D for submit@debbugs.gnu.org; Mon, 02 Dec 2024 17:37:51 -0500 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:44533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIF37-00045C-Ix for 74459@debbugs.gnu.org; Mon, 02 Dec 2024 17:37:49 -0500 Received: from localhost (antispam.ee.ethz.ch [129.132.2.16]) by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id 3ADA41FFFF for <74459@debbugs.gnu.org>; Mon, 2 Dec 2024 23:37:44 +0100 (CET) X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]) by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10028) with ESMTP id MCmylxrO8gmV for <74459@debbugs.gnu.org>; Mon, 2 Dec 2024 23:37:43 +0100 (CET) Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA for <74459@debbugs.gnu.org>; Mon, 2 Dec 2024 23:37:43 +0100 (CET) Date: Mon, 2 Dec 2024 23:37:40 +0100 From: Gabriel Wicki Message-ID: <5z4dvh5gzjudtvzzp3pvglimxxm45uby6lnkirer2hhujy26ld@zezljqwf3342> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.01 X-Spam-Score: -4.01 X-Migadu-Queue-Id: 4EC798929F X-TUID: Gf4FuXy8e1xY * guix/lint.scm(check-synopsis-style)[check-proper-start]: Add condition. * tests/lint.scm: Add test case. Change-Id: I2509b3a4e7e51c6a274697ceb5f776c22e27c5f9 --- guix/lint.scm | 3 ++- tests/lint.scm | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/guix/lint.scm b/guix/lint.scm index d6d48ad27c..396ee01fed 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -743,7 +743,8 @@ (define (check-synopsis-style package) '())) (define (check-proper-start synopsis) - (if (properly-starts-sentence? synopsis) + (if (or (properly-starts-sentence? synopsis) + (starts-with-texinfo-markup? synopsis)) '() (list (make-warning package diff --git a/tests/lint.scm b/tests/lint.scm index df7042c470..6631034151 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -307,6 +307,12 @@ (define (warning-contains? str warnings) (check-synopsis-style pkg))) string