We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f280974 commit 787ef5fCopy full SHA for 787ef5f
1 file changed
SwiftLint/copy-and-run-swiftlint-config.sh
@@ -238,14 +238,15 @@ if [ $isFramework = true ]; then
238
merge_swiftlint_configuration "swiftlint+frameworks.yml" "$tmpFile" "--write-to-file" "$tmpFile.frameworks"
239
mv "$tmpFile.frameworks" "$tmpFile"
240
241
+ unitTestDir="false"
242
# Find the unit test directory
243
if [ -e "$projectDir/Unit-Tests" ]; then
244
unitTestDir="$projectDir/Unit-Tests"
245
elif [ -e "$projectDir/UnitTests" ]; then
246
unitTestDir="$projectDir/UnitTests"
247
fi
248
- if [ -e $unitTestDir ]; then
249
+ if [ -e $unitTestDir ] && [ $unitTestDir != "false" ]; then
250
if [ -f "$unitTestDir/.project-swiftlint.yml" ]; then
251
# Deals with .project-swiftlint.yml for unit tests
252
rm "$unitTestDir/.swiftlint.yml"
0 commit comments