Skip to content

Commit e47afae

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 dd559df commit e47afae

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
@@ -946,7 +946,7 @@ FOUND_SOURCE_FILES := $(filter-out $(GENERATED_H),$(shell $(SOURCES_CMD)))
946946
FOUND_C_SOURCES = $(filter %.c,$(FOUND_SOURCE_FILES))
947947
FOUND_H_SOURCES = $(filter %.h,$(FOUND_SOURCE_FILES))
948948

949-
COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES),$(FOUND_C_SOURCES))
949+
COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES) reftable/%,$(FOUND_C_SOURCES))
950950

951951
LIB_H = $(FOUND_H_SOURCES)
952952

0 commit comments

Comments
 (0)