Skip to content

Commit 2b77a33

Browse files
committed
test: Improve check-doc.py pattern
1 parent cb32328 commit 2b77a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/check-doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
FOLDER_GREP = 'src'
1717
FOLDER_TEST = 'src/test/'
18-
REGEX_ARG = r'(?:ForceSet|SoftSet|Get|Is)(?:Bool)?Args?(?:Set)?\("(-[^"]+)"'
18+
REGEX_ARG = r'\b(?:GetArg|GetArgs|GetBoolArg|GetIntArg|GetPathArg|IsArgSet|get_net)\("(-[^"]+)"'
1919
REGEX_DOC = r'AddArg\("(-[^"=]+?)(?:=|")'
2020
CMD_ROOT_DIR = '$(git rev-parse --show-toplevel)/{}'.format(FOLDER_GREP)
2121
CMD_GREP_ARGS = r"git grep --perl-regexp '{}' -- {} ':(exclude){}'".format(REGEX_ARG, CMD_ROOT_DIR, FOLDER_TEST)

0 commit comments

Comments
 (0)