From e91475c3defb441534046014769471168e375856 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 21 Jul 2023 10:17:03 +0930 Subject: [PATCH] Makefile: check-source-no-cppcheck. Recent cppcheck doesn't like our code; until we fix that, make it easy to run every other source check. Signed-off-by: Rusty Russell --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0bba352c0e0..e5aa0bc392a9 100644 --- a/Makefile +++ b/Makefile @@ -571,7 +571,10 @@ check-amount-access: @! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:') @! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" -check-source: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-cppcheck check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access +# For those without working cppcheck +check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access + +check-source: check-source-no-cppcheck check-cppcheck full-check: check check-source