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
// good let foo = { (bar: Int) in print(bar) } // bad call(arg: { (bar2) in })
We could use a regex (\{\s*\([^:]+\)\s*in) to do it and also check for source.lang.swift.decl.var.parameter without a key.typename.
\{\s*\([^:]+\)\s*in
source.lang.swift.decl.var.parameter
key.typename
Stole the idea and regex from @keith
The text was updated successfully, but these errors were encountered:
Maybe this should have an option to allow the parentheses when the return type is explicit and there are more than one parameter? e.g.
ruleList.list.flatMap { (identifier, rule) -> [(String, String)] in return rule.description.deprecatedAliases.map { ($0, identifier) } }
Sorry, something went wrong.
Emphasis on "and", I'd say. See my examples in my request (#1583) to see what I mean what I'd expect to be accepted.
No branches or pull requests
We could use a regex (
\{\s*\([^:]+\)\s*in
) to do it and also check forsource.lang.swift.decl.var.parameter
without akey.typename
.Stole the idea and regex from @keith
The text was updated successfully, but these errors were encountered: