Message ID | 20230912185436.314306-1-patrick@rivosinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp615133vqx; Tue, 12 Sep 2023 11:56:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOU+x2zajIvXhC2yJi4WbHRrAPd3k5ojK4U3nV0oFEkJuXGhWvtKDJ+XWsJVx81wYILAK5 X-Received: by 2002:aa7:d7c9:0:b0:521:8777:b00d with SMTP id e9-20020aa7d7c9000000b005218777b00dmr353157eds.15.1694544976749; Tue, 12 Sep 2023 11:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694544976; cv=none; d=google.com; s=arc-20160816; b=mC5S63ccgFy6hm/Zbkj+wP71Yj0xq8inMhtpwr65FK7IZWZT6UnnOquNr2IRondkjW Ch1eiAqRBjdz6FaRr1S2oEMwuh1iQGjsv26Kya9pcDvkGjvjd7T87g6yghJHMn+2blym 8IJo12ekf9EGM5fSljw1b8eQ2D5v+TtmmhUKhN5Uq3+1GlC5vLBb7kM9SOHd9IXNjjKM jxcGU+EIokSo54ZYaw4XXYJoLtIM24vSTPLCh0zvrCj1DmCzebl1gwfKzeXny5203EUE BkSSU91pN0nIju09Nvk7SUe0A9PfK8dCQMMNY3G6yo1TeV9avkZh2k8nDgbzIhGxCC+Z ZZFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=YA5IBaPEtuI53/PzUSxpvd1hmSavCtdlKc7anjsuzp8=; fh=tTok6J5vmanORZAyCZZF0XMtBtdLuOv3a5t19WsvClM=; b=KcBQAmYycVc5THQH/ecN0DSm1pLpA/7qUZTHlcfAOvJcMJ5FXuq9aQsc+l11f58XaO FoLmOR6ScDdjUFvwQX7GlW+hrQlkEWJvrYDFF1g033Dk7bKqg17NTQt9Q3vOhtsM9Nu0 q/l1PePYE+uxnJVO60deUoNPJ56qejNRmBfjKqcoLoxy480wSpNvXqqTNJ67fsSmKmGv qOXfIFXKYYiSnj6QR0YWWD4vOV3BcJOZ62FctQgtyUS/TlPkuV7DteI3s4DSw3gKKAJ1 S6A76t9mV+UGuLOoOkDxQAI3ZrGsyrbQcu1LdyLIBFXOm812kRddfyQyaEkuLVgXGnTy 4JwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zUjKpXjp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b21-20020a0564021f1500b0052f2a7c170fsi7474315edb.534.2023.09.12.11.56.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=zUjKpXjp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3806F3853D2A for <ouuuleilei@gmail.com>; Tue, 12 Sep 2023 18:55:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 31DA03858C2A for <gcc-patches@gcc.gnu.org>; Tue, 12 Sep 2023 18:55:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 31DA03858C2A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3a81154c570so3704990b6e.1 for <gcc-patches@gcc.gnu.org>; Tue, 12 Sep 2023 11:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1694544919; x=1695149719; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YA5IBaPEtuI53/PzUSxpvd1hmSavCtdlKc7anjsuzp8=; b=zUjKpXjpnRmmll7DfM4/CUk47W6gcoVVAvG+dx/Msr89X8OZptg+GVeV3LBLX4yZ9U WjEBLnZVLpfP8ZIiQbeZuzb4PZJdYHQlpdD9Bom2EwSbrHbU+Oc1TXKt/W0mvlqzfJgp F6L4sWQFse4cNvjrFK2u1Y0GzpFGB9K3a6HNYuMVVFgTpuY4xUDA86AkJZJ48zpcQ48l RiSM0J114IP5l5hIQdAHo49GHuWCON/M7DxZX6AZ1pBCDnVcCh2Zf1ix6JYmLFCQmqen emvgKAiR206McnYtB2RXWKhT6H03azRx83WWle6/TKer7lrg0Mq+b6lJrqGzS9RaGy24 saKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694544919; x=1695149719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YA5IBaPEtuI53/PzUSxpvd1hmSavCtdlKc7anjsuzp8=; b=bS9fOCF7uKPpm7E95ue+Zlcx8W5RSfG8xfVPfjGmJ6HfkV+yh9RAjJERhFT7/5Z+1N uk+kWPHpu3QggqHBya3iQwb6cFCAFDbn7raNYprRem5z0FyZbHzh5xrbNtC6ZQxxaKgU 2blxexW6NkM3lynwK+jDJajmCn8wzQLr2qbcHiwKpwl567Sd7t/uFltgTAlR+qxTUCHl X5hN9ZQ1f6ICp5CtkL/9TCM9UO5P6Ce8yMxYk1mVkAKMVZtcNRXssLZm8zI44gL+d747 7Rf33HARagiAzCZQWpIg7bWPTJKpgs22Dsfa+UKCEWFufYpjwzoQ/GdOUYFz1X0tqcF+ nB9A== X-Gm-Message-State: AOJu0YyU+geBb9jNfLovmWpAsoTXQGI6kWsVtOg3Q64M/xWRljQv9z0r Fea6LBYC10NHcxVz5EVh+WIH0nVojvKtFwOe9Nk= X-Received: by 2002:a05:6808:210c:b0:3a7:72e2:f6be with SMTP id r12-20020a056808210c00b003a772e2f6bemr739179oiw.2.1694544919251; Tue, 12 Sep 2023 11:55:19 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id s9-20020a63b409000000b00573f958f6a3sm6686645pgf.5.2023.09.12.11.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:55:18 -0700 (PDT) From: Patrick O'Neill <patrick@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: mliska@suse.cz, msebor@gmail.com, Patrick O'Neill <patrick@rivosinc.com> Subject: [PATCH] check_GNU_style.py: Skip .md square bracket linting Date: Tue, 12 Sep 2023 11:54:36 -0700 Message-Id: <20230912185436.314306-1-patrick@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MEDICAL_SUBJECT, RCVD_IN_DNSWL_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776859193367549728 X-GMAIL-MSGID: 1776859193367549728 |
Series |
check_GNU_style.py: Skip .md square bracket linting
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Patrick O'Neill
Sept. 12, 2023, 6:54 p.m. UTC
This testcase causes lots of false-positives for machine description files.
contrib/ChangeLog:
* check_GNU_style_lib.py: Skip machine description file bracket linting.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
---
contrib/check_GNU_style_lib.py | 3 +++
1 file changed, 3 insertions(+)
--
2.34.1
Comments
On 9/12/23 12:54, Patrick O'Neill wrote: > This testcase causes lots of false-positives for machine description files. > > contrib/ChangeLog: > > * check_GNU_style_lib.py: Skip machine description file bracket linting. OK. We probably need a completely separate checker for for .md files. jeff
On 9/29/23 12:05, Jeff Law wrote: > > > On 9/12/23 12:54, Patrick O'Neill wrote: >> This testcase causes lots of false-positives for machine description >> files. >> >> contrib/ChangeLog: >> >> * check_GNU_style_lib.py: Skip machine description file bracket >> linting. > OK. We probably need a completely separate checker for for .md files. > > > jeff Committed. Thanks!
diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index 94a742941cf..5096b1333f3 100755 --- a/contrib/check_GNU_style_lib.py +++ b/contrib/check_GNU_style_lib.py @@ -182,6 +182,9 @@ class SquareBracketCheck: self.re = re.compile('\w\s+(\[)') def check(self, filename, lineno, line): + if filename.endswith('.md'): + return None + m = self.re.search(line) if m != None: return CheckError(filename, lineno,