From 57cdf55034d3e435db5fb27deb9976196354945d Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 17 May 2020 20:23:03 -0700 Subject: Refresh check-cppcheck rule from rra-c-util --- Makefile.am | 8 +++++--- 1 file 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. -- cgit v1.2.3