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>
This commit is contained in:
parent
51d09e67df
commit
895ec1956a
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue