We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74649e commit fa520e7Copy full SHA for fa520e7
test/lint/lint-rpc-help.sh
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env bash
2
+#
3
+# Copyright (c) 2018 The Bitcoin Core developers
4
+# Distributed under the MIT software license, see the accompanying
5
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
+
7
+export LC_ALL=C
8
9
+EXIT_CODE=0
10
+non_autogenerated_help=$(grep --perl-regexp --null-data --only-matching 'runtime_error\(\n\s*".*\\n"\n' $(git ls-files -- "*.cpp"))
11
+if [[ ${non_autogenerated_help} != "" ]]; then
12
+ echo "Must use RPCHelpMan to generate the help for the following RPC methods:"
13
+ echo "${non_autogenerated_help}"
14
+ echo
15
+ EXIT_CODE=1
16
+fi
17
+exit ${EXIT_CODE}
0 commit comments