aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2020-05-17 20:23:03 -0700
committerRuss Allbery <eagle@eyrie.org>2020-05-17 20:23:03 -0700
commit57cdf55034d3e435db5fb27deb9976196354945d (patch)
treea05cb30a7867650fc36d3a2960e289d173b04988
parent108233784827d54361c99c67eaee9e668010b3c3 (diff)
Refresh check-cppcheck rule from rra-c-util
-rw-r--r--Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index d5e46a8..4815a46 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -312,9 +312,11 @@ check-local: $(check_PROGRAMS)
# Used by maintainers to check the source code with cppcheck.
check-cppcheck:
- cd $(abs_top_srcdir) && cppcheck -q --error-exitcode=2 \
- --suppressions-list=tests/data/cppcheck.supp \
- --enable=warning,performance,portability,style .
+ cd $(abs_top_srcdir) && \
+ find . -name .git -prune -o -name '*.[ch]' -print \
+ | cppcheck -q --force --error-exitcode=2 --file-list=- \
+ --suppressions-list=tests/data/cppcheck.supp \
+ --enable=warning,performance,portability,style
# Alas, we have to disable this check because there's no way to do an
# uninstall from Perl.