From 0291efe8c9845e5352c2223dbf09f108645e9dba Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 31 Mar 2020 12:29:45 +0300 Subject: [PATCH] use $TARGET_NAME instead of $PROJECT_NAME as default folder path for linting --- xcode/build_phases/swiftlint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/build_phases/swiftlint.sh b/xcode/build_phases/swiftlint.sh index 9491bf4..f1f8fb8 100644 --- a/xcode/build_phases/swiftlint.sh +++ b/xcode/build_phases/swiftlint.sh @@ -1,2 +1,2 @@ -SOURCES_DIR=${1:-${PROJECT_NAME}} # first argument or PROJECT_NAME +SOURCES_DIR=${1:-${TARGET_NAME}} # first argument or TARGET_NAME ${PODS_ROOT}/SwiftLint/swiftlint autocorrect --path ${SOURCES_DIR} --config ${PROJECT_DIR}/build-scripts/xcode/.swiftlint.yml && ${PODS_ROOT}/SwiftLint/swiftlint --path ${SOURCES_DIR} --config ${PROJECT_DIR}/build-scripts/xcode/.swiftlint.yml