We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 7cb3c42b9551dc52aa2896c609bb2f3e
Issue Description:
Adding // swift-format-ignore inside a case in a switch statement causes the linter to crash with the following message:
Fatal error: At least one .break(.open) was not matched by a .break(.close): file SwiftFormatPrettyPrint/PrettyPrint.swift, line 689
Example code that causes the crash is below (running swift-format -r -m lint .):
class Test { enum FooBar: String { case foo case bar } func myFunc(_ val: FooBar) { switch val { case .foo: // swift-format-ignore print("Foo") case .bar: print("Bar") } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Additional Detail from JIRA
md5: 7cb3c42b9551dc52aa2896c609bb2f3e
Issue Description:
Adding // swift-format-ignore inside a case in a switch statement causes the linter to crash with the following message:
Example code that causes the crash is below (running swift-format -r -m lint .):
The text was updated successfully, but these errors were encountered: