aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-assertions.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lint/lint-assertions.py')
-rwxr-xr-xtest/lint/lint-assertions.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/lint/lint-assertions.py b/test/lint/lint-assertions.py
index d9f86b22b8..5d01b13fd4 100755
--- a/test/lint/lint-assertions.py
+++ b/test/lint/lint-assertions.py
@@ -27,8 +27,9 @@ def main():
# checks should be used over assert. See: src/util/check.h
# src/rpc/server.cpp is excluded from this check since it's mostly meta-code.
exit_code = git_grep([
- "-nE",
- r"\<(A|a)ss(ume|ert) *\(.*\);",
+ "--line-number",
+ "--extended-regexp",
+ r"\<(A|a)ss(ume|ert)\(",
"--",
"src/rpc/",
"src/wallet/rpc*",
@@ -38,8 +39,9 @@ def main():
# The `BOOST_ASSERT` macro requires to `#include boost/assert.hpp`,
# which is an unnecessary Boost dependency.
exit_code |= git_grep([
- "-E",
- r"BOOST_ASSERT *\(.*\);",
+ "--line-number",
+ "--extended-regexp",
+ r"BOOST_ASSERT\(",
"--",
"*.cpp",
"*.h",