2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

checkpatch: Skip words containing numbers.

Words like 'br0' are common and usually references some code or
database objects that should not be targets for spell checking.
So, it's better to skip all the words that has digits inside instead
of ones that starts with numbers.

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: William Tu <u9012063@gmail.com>
This commit is contained in:
Ilya Maximets
2019-12-07 18:10:24 +01:00
parent 98a411b32e
commit 37c6dfab10

View File

@@ -396,8 +396,8 @@ def check_comment_spelling(line):
strword[1:].islower()):
skip = True
# skip words that start with numbers
if strword.startswith(tuple('0123456789')):
# skip words containing numbers
if any(check_char.isdigit() for check_char in strword):
skip = True
if not skip: