mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
lint: Must use RPCHelpMan to generate the RPC docs
This commit is contained in:
parent
e74649e951
commit
fa520e72f7
17
test/lint/lint-rpc-help.sh
Executable file
17
test/lint/lint-rpc-help.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 The Bitcoin Core developers
|
||||||
|
# Distributed under the MIT software license, see the accompanying
|
||||||
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
|
EXIT_CODE=0
|
||||||
|
non_autogenerated_help=$(grep --perl-regexp --null-data --only-matching 'runtime_error\(\n\s*".*\\n"\n' $(git ls-files -- "*.cpp"))
|
||||||
|
if [[ ${non_autogenerated_help} != "" ]]; then
|
||||||
|
echo "Must use RPCHelpMan to generate the help for the following RPC methods:"
|
||||||
|
echo "${non_autogenerated_help}"
|
||||||
|
echo
|
||||||
|
EXIT_CODE=1
|
||||||
|
fi
|
||||||
|
exit ${EXIT_CODE}
|
Loading…
Reference in New Issue
Block a user