SwiftLint: Swiftlint analyzer fails when the app's Display Name contains a blank
New Issue Checklist
- Updated SwiftLint to the latest version
- I searched for existing GitHub issues
Describe the bug
I’m running swiftlint analyze with rule explicit_self enabled in my project: https://github.com/gereons/SwiftLintBug2 (use the enclosed lint.sh to reproduce).
Expected result: swiftlint reports the violations
Actual result: swiftlint does not analyze any files
$ ./lint.sh note: Using new build system
** CLEAN SUCCEEDED **
Loading configuration from ‘.swiftlint.yml’ Analyzing Swift files at paths Done analyzing! Found 0 violations, 0 serious in 0 files.
Instead of the expected output of
Analyzing Swift files at paths Analyzing ‘ExplicitSelf.swift’ (1/4) Analyzing ‘AppDelegate.swift’ (2/4) Analyzing ‘ContentView.swift’ (3/4) Analyzing ‘SceneDelegate.swift’ (4/4) … offending files Done analyzing! Found 3 violations, 0 serious in 4 files.
Opening the .xcodeproj and removing the blank from the app’s “Display Name” makes swiftlint work again.
Swiftlint version: 0.38.1, installed via homebrew Xcode version: 11.3
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20
@gereons @DimDL @stephengroombbc can you please confirm that #3549 fixes this issue in your projects?
Works for me 🎉
I found a fix for the initial issue you reported, I should have a PR up later today.
Sure. I’ve updated the https://github.com/gereons/SwiftLintBug2 repo, simply clone it and run the enclosed
lint.shscriptThis issue is still present in v0.41.0 and should not be closed, IMO