public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4341] check_GNU_style.py: Skip .md square bracket linting
@ 2023-09-29 21:13 Patrick O'Neill
0 siblings, 0 replies; only message in thread
From: Patrick O'Neill @ 2023-09-29 21:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:895ec1956a1d8e4338760afae4e62829ba53ea7d
commit r14-4341-g895ec1956a1d8e4338760afae4e62829ba53ea7d
Author: Patrick O'Neill <patrick@rivosinc.com>
Date: Tue Sep 12 11:30:20 2023 -0700
check_GNU_style.py: Skip .md square bracket linting
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>
Diff:
---
contrib/check_GNU_style_lib.py | 3 +++
1 file changed, 3 insertions(+)
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-29 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-29 21:13 [gcc r14-4341] check_GNU_style.py: Skip .md square bracket linting Patrick O'Neill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).