mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Ignore incorrect keypath parser diagnostics (#4325)
Works around https://github.com/apple/swift-syntax/issues/888
This commit is contained in:
@@ -171,6 +171,10 @@ extension SwiftLintFile {
|
||||
return ParseDiagnosticsGenerator.diagnostics(for: syntaxTree)
|
||||
.filter { $0.diagMessage.severity == .error }
|
||||
.map(\.message)
|
||||
.filter { message in
|
||||
// Workaround for https://github.com/apple/swift-syntax/issues/888
|
||||
return !message.starts(with: "unexpected text '.?.")
|
||||
}
|
||||
}
|
||||
|
||||
internal var structure: Structure {
|
||||
|
||||
Reference in New Issue
Block a user