From nobody Sun Apr 28 22:39:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1511389366059470.22533581279345; Wed, 22 Nov 2017 14:22:46 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA2DA37E7A; Wed, 22 Nov 2017 22:22:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B1F8C17198; Wed, 22 Nov 2017 22:22:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0CC09180474A; Wed, 22 Nov 2017 22:22:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id vAMMI1qn016283 for ; Wed, 22 Nov 2017 17:18:01 -0500 Received: by smtp.corp.redhat.com (Postfix) id C3BE760C28; Wed, 22 Nov 2017 22:18:01 +0000 (UTC) Received: from wheatley.localdomain (ovpn-204-77.brq.redhat.com [10.40.204.77]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 89B716F960 for ; Wed, 22 Nov 2017 22:17:59 +0000 (UTC) Received: from wheatley.cock.kentus.net (wheatley [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id F1E0C7E007B for ; Wed, 22 Nov 2017 23:17:57 +0100 (CET) From: Martin Kletzander To: libvir-list@redhat.com Date: Wed, 22 Nov 2017 23:17:49 +0100 Message-Id: <3360d41a73e92fe611c8bbeb6887eb85e31d5bce.1511389069.git.mkletzan@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] Adjust backslash alignment syntax-check X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 22 Nov 2017 22:22:45 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" We have a check for backslash alignment that checks for two blanks precedin= g a backslash. However there can be alignment done using a tabulator and in so= me cases one might be enough. There are none currently, but I found out that = was the case before. at some point. so let's check for \t preceding the final backslash as well. Signed-off-by: Martin Kletzander --- cfg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index 5321a52b7ee2..ea10ca19f512 100644 --- a/cfg.mk +++ b/cfg.mk @@ -1038,7 +1038,7 @@ sc_prohibit_http_urls: $(_sc_search_regexp) =20 sc_prohibit_backslash_alignment: - @prohibit=3D'[[:blank:]][[:blank:]]\\$$' \ + @prohibit=3D'([[:blank:]][[:blank:]]| )\\$$' \ in_vc_files=3D'*\.([chx]|am|mk)$$' \ halt=3D'Do not attempt to right-align backslashes' \ $(_sc_search_regexp) --=20 2.15.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list