From daf50493e6ce45a475ed16c574889ade527851f3 Mon Sep 17 00:00:00 2001 From: Loupehope <31570429+Loupehope@users.noreply.github.com> Date: Thu, 29 Apr 2021 08:03:46 +0300 Subject: [PATCH] Remove useless path to pmd --- 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 b3b1f04..653b093 100755 --- a/xcode/build_phases/copy_paste_detection.sh +++ b/xcode/build_phases/copy_paste_detection.sh @@ -24,7 +24,7 @@ readonly EXIT_SUCCESS=0 readonly EXIT_FAILURE=1 -if which /usr/local/bin/pmd >/dev/null; then +if which pmd >/dev/null; then readonly REPORTS_DIR="${PROJECT_DIR}/code-quality-reports" readonly SOURCES_DIRS=`. ${SCRIPT_DIR}/common/read_input_file_names.sh " " ${PROJECT_DIR}` @@ -44,7 +44,7 @@ if which /usr/local/bin/pmd >/dev/null; then mkdir -p ${REPORTS_DIR} - /usr/local/bin/pmd cpd --files ${SOURCES_DIRS} --exclude ${FILES_TO_EXCLUDE} --minimum-tokens 50 --language swift --encoding UTF-8 --format net.sourceforge.pmd.cpd.XMLRenderer --failOnViolation true > ${REPORTS_DIR}/cpd-output.xml + pmd cpd --files ${SOURCES_DIRS} --exclude ${FILES_TO_EXCLUDE} --minimum-tokens 50 --language swift --encoding UTF-8 --format net.sourceforge.pmd.cpd.XMLRenderer --failOnViolation true > ${REPORTS_DIR}/cpd-output.xml php ${SCRIPT_DIR}/../aux_scripts/cpd_script.php ${REPORTS_DIR}/cpd-output.xml | tee ${REPORTS_DIR}/CPDLog.txt