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
There's currently not really a way for SwiftFormat to detect this case since it doesn't have access to type information. The best option for now would be to disable the rule, either globally or locally using:
@marcelofabri I realized on reflection that the existing heuristic I use to avoid false positives for redundantInit ought to handle this case as well, so I've pushed a fix to develop that should solve it
Given this code:
0.53.6
removes the.init
, causing an error:loggingEventBatchType
is defined asAnyLoggingEventBatch.Type
The text was updated successfully, but these errors were encountered: