-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: Must use RPCHelpMan to generate the RPC docs
- Loading branch information
MarcoFalke
committed
Nov 14, 2018
1 parent
e74649e
commit fa520e7
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |