File tree Expand file tree Collapse file tree
Tuist/ProjectDescriptionHelpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,11 +80,16 @@ public enum DevLogScripts {
8080 if [ " $sourcePathName " != " . " ]; then
8181 " $swiftLintPath " lint --config " $configPath " " $lintSourcePath "
8282 else
83- status=0
84- while IFS= read -r swiftFilePath; do
85- " $swiftLintPath " lint --config " $configPath " " $swiftFilePath " || status=$?
86- done < <(find " $lintSourcePath " -name " *.swift " -not -path " */Derived/* " -not -name " Project.swift " )
87- exit " $status "
83+ swiftFilePaths=()
84+ while IFS= read -r -d '' swiftFilePath; do
85+ swiftFilePaths+=( " $swiftFilePath " )
86+ done < <(find " $lintSourcePath " -name " *.swift " -not -path " */Derived/* " -not -name " Project.swift " -print0)
87+
88+ if [ ${#swiftFilePaths[@]} -lt 1 ]; then
89+ exit 0
90+ fi
91+
92+ " $swiftLintPath " lint --config " $configPath " " ${swiftFilePaths[@]} "
8893 fi
8994 """ ,
9095 name: " SwiftLint " ,
You can’t perform that action at this time.
0 commit comments