From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8H/tAd9BP2duogAAqHPOHw:P1 (envelope-from ) for ; Thu, 21 Nov 2024 14:21:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8H/tAd9BP2duogAAqHPOHw (envelope-from ) for ; Thu, 21 Nov 2024 15:21:19 +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=Llo4YZ+d; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732198878; a=rsa-sha256; cv=none; b=CK555jy2qQu475BoEkuXKL0Egfpy1dv07ye/Sl3Gp0eeFcg6LPWhl8TQ82nIpUlyFZ7Z1/ ujvUQfl7nWpYCVBAUHXHD2eV/tVp5ntyQnDiEIOlf27BBqg8QaCc7h6KTPBgJUJvVJo+zC TaBeqJcX03hNLgSjCgtHONaxz4CgUmLKVzQ7tM+GTnSyfWorcCu9kVhUPTEXWYt0t69TiZ Iwxc3z5QcBnhY1d9SSq/mggxXfqrIACcFd0Rya6AiIkbxnOYbeBePTaN3FvDIeKzDLrDoP b/CcCq16+mclQ38w5nvGKiPXJCXPrW2ol7ENog9gw4ViXc83FF3tvBxdXVO8ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Llo4YZ+d; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732198878; 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=OodUJEBNysnnXmlMM9XnrruZqQiPpuxLP6a65Zlgiro=; b=pEfr5O1kLZzGyYeIz6+hjN3PWfcgpjS4+bMj01m0ry8RbOXEcBiw3PBCO/D7sBHCAgDTxb zuR6FzTG2LjvEXKwrlzwNdwMFZcpusDkpIJNDaPgh7Qu2rnIWaeJQ4+cb1po/eU/+Ugken 3PBOYyjtzE0uDJ9LAOyaN7fyQ7fSgSW8GD1vKjBDDk6M4kAkKIQh9luvZ0ODOY/4dbRn1X 9acopRr0+0uMrvMPQnbD/UzXNOzaoup6FR51VEdrwQ1E3OAVA4WaNfJ1mheBMsJEGpFxgI HXKMOFkm2q1otAGWnDFjs1P4Gs9x0vRkKunZ9a1rhLga7euvF2VHcWextNbzaQ== 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 959ED71B13 for ; Thu, 21 Nov 2024 15:21:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE6aQ-0004Zg-QA; Thu, 21 Nov 2024 07:47:06 -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 1tE6aM-0004YR-Ec for guix-patches@gnu.org; Thu, 21 Nov 2024 07:47: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 1tE6aM-000709-3H for guix-patches@gnu.org; Thu, 21 Nov 2024 07:47: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=OodUJEBNysnnXmlMM9XnrruZqQiPpuxLP6a65Zlgiro=; b=Llo4YZ+dP8oP/+Yw9Q+8oCQ1CWkYGwGBy4Z2WitbELG+nYavXHVirSvhZx1BC5011/m5vMCQMmt3UFpOvqdV65qggDS71MRmXv+MNddgexus9m3nQiXsMhUrmFOyfOtNlJhKl2L7BSX0S4dhZK5ukp/vL/dsbqvPa+bUWZjBbMU2vqX9PFQ6gSFsqEwDFCHZDZ+ysU6y5YFO8eUWlIdymkJ30uV7OnWOlQJmUGwAya2m8q06ql6PRanIAaJv4MKmRTRPwmsTfRS6zyxmrz6P1Ke0MB0VYUtLqtMDf54MVtet1UrgAn7jeCmW5ZgmuorSMwJBwpnF3dM3nT/j+2kvHg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tE6aL-0000ce-Tt for guix-patches@gnu.org; Thu, 21 Nov 2024 07:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74459] [PATCH 4/8] 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: Thu, 21 Nov 2024 12:47: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.17321931912354 (code B ref 74459); Thu, 21 Nov 2024 12:47:01 +0000 Received: (at 74459) by debbugs.gnu.org; 21 Nov 2024 12:46:31 +0000 Received: from localhost ([127.0.0.1]:49439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE6Zm-0000bd-LT for submit@debbugs.gnu.org; Thu, 21 Nov 2024 07:46:31 -0500 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:38951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE6Zk-0000bL-2p for 74459@debbugs.gnu.org; Thu, 21 Nov 2024 07:46:24 -0500 Received: from localhost (antispam.ee.ethz.ch [129.132.2.16]) by cotopaxi.ee.ethz.ch (Postfix) with ESMTP id B31D120026 for <74459@debbugs.gnu.org>; Thu, 21 Nov 2024 13:46:18 +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 s9QxLdghsqyb for <74459@debbugs.gnu.org>; Thu, 21 Nov 2024 13:46:17 +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>; Thu, 21 Nov 2024 13:46:17 +0100 (CET) Date: Thu, 21 Nov 2024 13:46:15 +0100 From: Gabriel Wicki Message-ID: 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-Spam-Score: -4.65 X-Spam-Score: -4.65 X-Migadu-Queue-Id: 959ED71B13 X-Migadu-Scanner: mx10.migadu.com X-TUID: +/WRLdWNnHDr * 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 4ea02a7faa..9fa22c92cc 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -740,7 +740,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