-
Notifications
You must be signed in to change notification settings - Fork 2.2k
swiftlint crashes due to duplicate keys in configuration #6052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👍 We are also having this issue. Full error log here
Happening in 0.59.1 |
Actually never mind. We had fault in our config file. But I still think error reporting could be better to not throw us off on the wrong path. |
I think there are a few things going on here Firstly, we call Secondly, we're getting the default |
See also #5284 for an example of where exiting abnormally may not be ideal |
New Issue Checklist
Bug Description
Swiftlint crashes while trying to read
.swiftlint.yml
with duplicating keys in sub-directory.If I run
swiftlint
in subdirectory it correctly reports an error:Stacktrace:
At least 0.57.0 doesn't crash, so looks like recent regression.
I tried to bisect but stuck due to:
Environment
SwiftLint version (run
swiftlint version
to be sure)0.59.0
Installation method used (Homebrew, CocoaPods, building from source, etc)
Built from source.
Configuration file:
The text was updated successfully, but these errors were encountered: