You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running swiftlint in a build phase for embedded xcodeproj's inside our workspace. On updating, one of these began crashing on build with the error below.
Having seen this, I thought it might be good to test the opposite system type too. It works fine right now, but anyone attempting to fix this needs to be mindful of both.
My file system is case‐sensitive. (Casing is a many‐to‐many operation, so the very idea of a case‐insensitive file system is a disaster... Sadly it is too late to undo history.)
Having set up a project like this...
mkdir "Capitalized Folder"cd"Capitalized Folder"
swift package init
cd ..
(The following results were the same when tested with both 0.24.2 and 0.25.0.)
When I run it with the proper casing, everything works as expected:
swiftlint lint --path "./Capitalized Folder"
[...]
Done linting! Found 8 violations, 2 serious in 4 files.
When I case it wrong, SwiftLint correctly fails to locate the folder:
swiftlint lint --path "./capitalized folder"
Linting Swift files at path ./capitalized folder
No lintable files found at path './capitalized folder'
New Issue Checklist
Bug Report
We are running swiftlint in a build phase for embedded xcodeproj's inside our workspace. On updating, one of these began crashing on build with the error below.
Previous:
swiftlint lint --reporter xcode --config ../../.swiftlint.yml --path ./SwiftKito --strict
Correct:
swiftlint lint --reporter xcode --config ../../.swiftlint.yml --path ./Swiftkito --strict
The update to 0.25.0 appears to have made the path case sensitive (which is not unfair), but the error is very hard to trace back to the root cause.
Logging here in case anyone encounters the same issue
Complete output when running SwiftLint, including the stack trace and command used
Environment
SwiftLint version (run
swiftlint version
to be sure)?: 0.25.0Installation method used (Homebrew, CocoaPods, building from source, etc)?: Homebrew
Paste your configuration file: Not relevant
Are you using nested configurations?
If so, paste their relative paths and respective contents.
Which Xcode version are you using (check
xcode-select -p
)? Xcode 9.2The text was updated successfully, but these errors were encountered: