Changeset View
Changeset View
Standalone View
Standalone View
test/lint/check-doc.py
Show All 16 Lines | |||||
import re | import re | ||||
TOP_LEVEL = 'git rev-parse --show-toplevel' | TOP_LEVEL = 'git rev-parse --show-toplevel' | ||||
FOLDER_SRC = '/src/**/' | FOLDER_SRC = '/src/**/' | ||||
FOLDER_TEST = '/src/**/test/' | FOLDER_TEST = '/src/**/test/' | ||||
EXTENSIONS = ["*.c", "*.h", "*.cpp", "*.cc", "*.hpp"] | EXTENSIONS = ["*.c", "*.h", "*.cpp", "*.cc", "*.hpp"] | ||||
REGEX_ARG = '(?:ForceSet|SoftSet|Get|Is)(?:Bool)?Args?(?:Set)?\(\s*"(-[^"]+)"' | REGEX_ARG = '(?:ForceSet|SoftSet|Get|Is)(?:Bool)?Args?(?:Set)?\(\s*"(-[^"]+)"' | ||||
REGEX_DOC = 'HelpMessageOpt\(\s*"(-[^"=]+?)(?:=|")' | REGEX_DOC = 'AddArg\(\s*"(-[^"=]+?)(?:=|")' | ||||
# list unsupported, deprecated and duplicate args as they need no documentation | # list unsupported, deprecated and duplicate args as they need no documentation | ||||
SET_DOC_OPTIONAL = set(['-benchmark', | SET_DOC_OPTIONAL = set(['-benchmark', | ||||
'-blockminsize', | '-blockminsize', | ||||
'-dbcrashratio', | '-dbcrashratio', | ||||
'-debugnet', | '-debugnet', | ||||
'-forcecompactdb', | '-forcecompactdb', | ||||
# TODO remove after the Nov 2019 upgrade | # TODO remove after the Nov 2019 upgrade | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |