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
opening_brace
Similar to #3068 I'd like to propose a change to opening_brace to allow the following format:
if let child = parent.children.first, let grandchild = child.children.first, let greatGrandchild = grandchild.children.first { // Some code }
or
Currently the autocorrect will fix it to the following which is difficult to read:
The text was updated successfully, but these errors were encountered:
looks like while also has this issue and should be included:
while
while let child = parent.children.first, let grandchild = child.children.first, let greatGrandchild = grandchild.children.first { // Some code }
guard does not assuming this structure:
guard
guard let child = parent.children.first, let grandchild = child.children.first, let greatGrandchild = grandchild.children.first else { // Some code }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
New Issue Checklist
Rule update request
Similar to #3068 I'd like to propose a change to
opening_brace
to allow the following format:or
Currently the autocorrect will fix it to the following which is difficult to read:
The text was updated successfully, but these errors were encountered: