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 think there are valid calls with mixing inline and trailing closures (notably `Debouncer`), so I’m considering whether we should disable that rule.
- The `forEach` rule is a little annoying because we have `forEach` on `SKDResponseArray`. But it caught two cases of using `forEach` on arrays, so I think it’s worth keeping.
range =Range(snapshot.positionOf(utf8Offset: utf8Offset))
205
207
}
206
208
209
+
// swift-format-ignore: ReplaceForEachWithForLoop
210
+
// Reference is to `SKDResponseArray.forEach`, not `Array.forEach`.
207
211
// If the diagnostic has a range associated with it that starts at the same location as the diagnostics position, use it to retrieve a proper range for the diagnostic, instead of just reporting a zero-length range.
208
212
(diag[keys.ranges]asSKDResponseArray?)?.forEach{ index, skRange in
0 commit comments