mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Per-line opt-out of typo check: Python port of b6837761815e1a8f6f475be4575824fc386a08dd
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
e503d61b99
commit
c62b4084a2
@ -173,6 +173,10 @@ class NameCheck(object):
|
||||
for filename in files:
|
||||
with open(filename, "r") as fp:
|
||||
for line in fp:
|
||||
# Ignore any names that are deliberately opted-out
|
||||
if re.search(r"// *no-check-names", line):
|
||||
continue
|
||||
|
||||
for name in re.finditer(r"\bMBED.+?_[A-Z0-9_]*", line):
|
||||
MBED_names.append(Match(
|
||||
filename,
|
||||
|
Loading…
x
Reference in New Issue
Block a user