diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-17 16:25:17 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-17 16:25:17 +0000 |
commit | 2b77a33e5b91a2e54c5e99b11bd775807ade024d (patch) | |
tree | cb4e3d34806e65e39d439231722fa38143e55e8f | |
parent | cb32328d1b80d0ccd6eb9532bd8fe4e0a4de385e (diff) | |
download | bitcoin-2b77a33e5b91a2e54c5e99b11bd775807ade024d.tar.xz |
test: Improve `check-doc.py` pattern
-rwxr-xr-x | test/lint/check-doc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lint/check-doc.py b/test/lint/check-doc.py index feaebc68e9..7955dd4f3e 100755 --- a/test/lint/check-doc.py +++ b/test/lint/check-doc.py @@ -15,7 +15,7 @@ import re FOLDER_GREP = 'src' FOLDER_TEST = 'src/test/' -REGEX_ARG = r'(?:ForceSet|SoftSet|Get|Is)(?:Bool)?Args?(?:Set)?\("(-[^"]+)"' +REGEX_ARG = r'\b(?:GetArg|GetArgs|GetBoolArg|GetIntArg|GetPathArg|IsArgSet|get_net)\("(-[^"]+)"' REGEX_DOC = r'AddArg\("(-[^"=]+?)(?:=|")' CMD_ROOT_DIR = '$(git rev-parse --show-toplevel)/{}'.format(FOLDER_GREP) CMD_GREP_ARGS = r"git grep --perl-regexp '{}' -- {} ':(exclude){}'".format(REGEX_ARG, CMD_ROOT_DIR, FOLDER_TEST) |