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
I'm using the new contrasted_opening_brace rule. I ran across a potential false positive (at least in my opinion) when this rule is used on trailing closures that include parameters.
Examples include (lifted straight from my codebase):
return allDependencies.map{ dependency in // <-- Violation here
.init(name: dependency.fullName, version: dependency.version, directlyDeclared: dependency.declaredDirectly)}
letoriginalServicesWithTheirUUIDs:[String:UUID]= services.reduce(into:[:]){ result, originalService in // <-- Violation here
result[originalService.name]= originalService.id
}
return AsyncStream
{ continuation in // <-- Violation here
}
I'd expect this rule to not consider these examples violations. Perhaps there could be a setting that would not flag these.