From 3ffe97bb960861a9489ba122e4650a26be7cbcfb Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 28 Apr 2021 15:45:44 +0200 Subject: [PATCH] make: Do not scan contrib for discouraged functions --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2575d34552b0..d57a36cb3d71 100644 --- a/Makefile +++ b/Makefile @@ -486,7 +486,7 @@ check-tmpctx: @if git grep -n 'tal_free[(]tmpctx)' | grep -Ev '^ccan/|/test/|^common/setup.c:|^common/utils.c:'; then echo "Don't free tmpctx!">&2; exit 1; fi check-discouraged-functions: - @if git grep -E "[^a-z_/](fgets|fputs|gets|scanf|sprintf)\(" -- "*.c" "*.h" ":(exclude)ccan/"; then exit 1; fi + @if git grep -E "[^a-z_/](fgets|fputs|gets|scanf|sprintf)\(" -- "*.c" "*.h" ":(exclude)ccan/" ":(exclude)contrib/"; then exit 1; fi # Don't access amount_msat and amount_sat members directly without a good reason # since it risks overflow.