mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Check for double underscores: Python port of 712f7a804e
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
fa950ae344
commit
c763cc368f
|
|
@ -469,6 +469,8 @@ class NameCheck(object):
|
||||||
for item_match in self.parse_result[group_to_check]:
|
for item_match in self.parse_result[group_to_check]:
|
||||||
if not re.match(check_pattern, item_match.name):
|
if not re.match(check_pattern, item_match.name):
|
||||||
problems.append(PatternMismatch(check_pattern, item_match))
|
problems.append(PatternMismatch(check_pattern, item_match))
|
||||||
|
if re.match(r".*__.*", item_match.name):
|
||||||
|
problems.append(PatternMismatch("double underscore", item_match))
|
||||||
|
|
||||||
if problems:
|
if problems:
|
||||||
self.set_return_code(1)
|
self.set_return_code(1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue