From 7ba32d59a8d103d34d0982df696e3724242068a9 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 6 Apr 2020 14:37:33 +0300 Subject: [PATCH] Add Carthage to FILES_TO_EXCLUDE --- xcode/build_phases/copy_paste_detection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcode/build_phases/copy_paste_detection.sh b/xcode/build_phases/copy_paste_detection.sh index d1ead79..c8b6e88 100644 --- a/xcode/build_phases/copy_paste_detection.sh +++ b/xcode/build_phases/copy_paste_detection.sh @@ -2,7 +2,7 @@ if which pmd >/dev/null; then # running CPD readonly SOURCES_DIR=${1:-${PROJECT_DIR}} # first argument or PROJECT_DIR readonly REPORTS_DIR=${PROJECT_DIR}/code-quality-reports - readonly FILES_TO_EXCLUDE=`find ${SOURCES_DIR} -type d -name Localization -or -name Generated -or -name Pods | paste -sd " " -` + readonly FILES_TO_EXCLUDE=`find ${SOURCES_DIR} -type d -name Localization -or -name Generated -or -name Carthage -or -name Pods | paste -sd " " -` mkdir ${REPORTS_DIR} @@ -17,4 +17,4 @@ if which pmd >/dev/null; then else echo "warning: pmd not installed, install using 'brew install pmd'" exit 1 -fi \ No newline at end of file +fi