mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
0f2e8aa504
* Merge #14726: Use RPCHelpMan for all RPCs fa5e0452e875a7ca6bf6fe61fdd652d341eece40 rpc: Documentation fixups (MarcoFalke) fa91e8eda541acdb78ca481b74605639f319c108 Use RPCHelpMan for all RPCs (MarcoFalke) fa520e72f7b5964cea1ade666e71212914556cf3 lint: Must use RPCHelpMan to generate the RPC docs (MarcoFalke) Pull request description: The resulting documentation should not change unless the type in the oneline-summary was previously incorrect. (E.g. string vs bool) Tree-SHA512: 4ff355b6a53178f02781e97a7aca7ee1d0d97ff348b6bf5a01caa1c96904ee33c704465fae54c2cd7445097427fd04c71ad3779bb7a7ed886055ef36c1b5a1d0 * Dash-specific changes to support RPCHelpMan with RPC commands Signed-off-by: Dzutte <dzutte.tomsk@gmail.com> Co-authored-by: Wladimir J. van der Laan <laanwj@gmail.com>
25 lines
798 B
Bash
Executable File
25 lines
798 B
Bash
Executable File
#!/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.
|
|
#
|
|
# Check that all RPC help texts are generated by RPCHelpMan.
|
|
|
|
export LC_ALL=C
|
|
|
|
EXIT_CODE=0
|
|
|
|
# Assume that all multiline strings passed into a runtime_error are help texts.
|
|
# This is potentially fragile, but the linter is only temporary and can safely
|
|
# be removed early 2019.
|
|
|
|
non_autogenerated_help=$(grep -A1 'runtime_error($' $(git ls-files -- "*.cpp") | grep '".*\\n"$')
|
|
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}
|