diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2023-09-12 11:30:20 -0700 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2023-09-29 14:13:02 -0700 |
commit | 895ec1956a1d8e4338760afae4e62829ba53ea7d (patch) | |
tree | b8e2963de73c551a9be6ce50560ffffff4895b7a /contrib | |
parent | 51d09e67df52164c2025afa24531cf79820ff4c8 (diff) | |
download | gcc-895ec1956a1d8e4338760afae4e62829ba53ea7d.zip gcc-895ec1956a1d8e4338760afae4e62829ba53ea7d.tar.gz gcc-895ec1956a1d8e4338760afae4e62829ba53ea7d.tar.bz2 |
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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/check_GNU_style_lib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index 94a7429..5096b13 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, |