mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix: disable linter 'check-rpc-mapping.py' for composite commands
This linter is subject to remove in 20012 anyway, which is todo after 18531 is done
This commit is contained in:
parent
f4bc19fb99
commit
9413ecdc66
@ -60,6 +60,12 @@ def process_commands(fname):
|
||||
in_rpcs = False
|
||||
elif '{' in line and '"' in line:
|
||||
m = re.search(r'{ *("[^"]*"), *("[^"]*"), *&([^,]*), *{([^}]*)} *},', line)
|
||||
# that's a quick fix for composite command
|
||||
# no proper implementation is needed so far as this linter would be removed soon with bitcoin#20012
|
||||
if not m:
|
||||
m = re.search(r'{ *("[^"]*"), *("[^"]*"), *("[^"]*"), *&([^,]*), *{([^}]*)} *},', line)
|
||||
if m:
|
||||
continue
|
||||
assert m, 'No match to table expression: %s' % line
|
||||
name = parse_string(m.group(2))
|
||||
args_str = m.group(4).strip()
|
||||
|
Loading…
Reference in New Issue
Block a user