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
swift-format trips on the rule: "warning: [OneVariableDeclarationPerLine]: split variable binding into multiple declarations" and converts the code to:
The problem here is that swift-format is adding the ErrStr type annotation to the declaration of strX on the third line, changing the type from Substring to ErrStr and breaking the code.
This is the current version of swift-format cloned and built from GitHub today, June 19, 2020.
The text was updated successfully, but these errors were encountered:
Environment
swift --version
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.5.0
swift-format --version
0.50200.1
Additional Detail from JIRA
md5: b9d2e03cbe33ec845d278c552c6251f9
Issue Description:
Given this code:
swift-format trips on the rule: "warning: [OneVariableDeclarationPerLine]: split variable binding into multiple declarations" and converts the code to:
The problem here is that swift-format is adding the ErrStr type annotation to the declaration of strX on the third line, changing the type from Substring to ErrStr and breaking the code.
This is the current version of swift-format cloned and built from GitHub today, June 19, 2020.
The text was updated successfully, but these errors were encountered: