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
If SwiftFormat's --swiftversion is set to (say) 5.2 then it implies that all the code in the codebase being formatted must be Swift 5.2+ compliant. In which case any conditional compilation checks like this are redundant :
#if swift(>=5.2)...#endif
We could add a rule that removes these. Potentially we could also add a similar rule for minimum deployment targets, but that would require additional configuration.
The text was updated successfully, but these errors were encountered:
One complication for such a rule would be distinguishing between Swift 6 in Swift 6 mode and Swift 6 in Swift 5 mode, as there's no --swiftversion which refers to Swift 6 in Swift 5 mode (AFAIK).
If SwiftFormat's --swiftversion is set to (say) 5.2 then it implies that all the code in the codebase being formatted must be Swift 5.2+ compliant. In which case any conditional compilation checks like this are redundant :
We could add a rule that removes these. Potentially we could also add a similar rule for minimum deployment targets, but that would require additional configuration.
The text was updated successfully, but these errors were encountered: