From 9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 31 May 2022 12:31:48 +0200 Subject: xref: Better handling of app scope --- plugins/xref.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/xref.mk') diff --git a/plugins/xref.mk b/plugins/xref.mk index 6c7cd5b..27d66d2 100644 --- a/plugins/xref.mk +++ b/plugins/xref.mk @@ -22,7 +22,7 @@ XREF_CHECKS ?= [undefined_function_calls] # application directories, being essentially an easy way # to configure which applications to analyze. With: # -# - app: ../$(PROJECT) +# - app: . # - apps: $(ALL_APPS_DIRS) # - deps: $(ALL_DEPS_DIRS) # - otp: Built-in Erlang/OTP applications. @@ -80,7 +80,7 @@ define xref.erl end, AppDirs = case lists:member(app, Scope) of false -> AppDirs3; - true -> ["../$(PROJECT)"|AppDirs3] + true -> ["../$(notdir $(CURDIR))"|AppDirs3] end, [{ok, _} = xref:add_application(Xref, AppDir, [{builtins, true}]) || AppDir <- AppDirs], ExtraDirs = [$(call comma_list,$(foreach d,$(XREF_EXTRA_DIRS),"$d"))], -- cgit v1.2.3