Skip to content

Commit 8f6a2db

Browse files
pks-tgitster
authored andcommitted
Makefile: skip reftable library for Coccinelle
The reftable library does not use any of the common helpers that the Git project has. Consequently, most of the rules that we have in Coccinelle do not apply to the library at all and may even generate false positives when a pattern can be converted to use a Git helper function. Exclude reftable library sources from being checked by Coccinelle to avoid such false positives. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6af23ac commit 8f6a2db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ FOUND_SOURCE_FILES := $(filter-out $(GENERATED_H),$(shell $(SOURCES_CMD)))
955955
FOUND_C_SOURCES = $(filter %.c,$(FOUND_SOURCE_FILES))
956956
FOUND_H_SOURCES = $(filter %.h,$(FOUND_SOURCE_FILES))
957957

958-
COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES),$(FOUND_C_SOURCES))
958+
COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES) reftable/%,$(FOUND_C_SOURCES))
959959

960960
LIB_H = $(FOUND_H_SOURCES)
961961

0 commit comments

Comments
 (0)