Skip to content
New issue

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 fix is broken #5598

Closed
2 tasks done
kapitoshka438 opened this issue May 21, 2024 · 0 comments · Fixed by #5620
Closed
2 tasks done

opening_brace fix is broken #5598

kapitoshka438 opened this issue May 21, 2024 · 0 comments · Fixed by #5620
Labels
bug Unexpected and reproducible misbehavior.

Comments

@kapitoshka438
Copy link

kapitoshka438 commented May 21, 2024

New Issue Checklist

Describe the bug

Source file:

func foo() {
    if q1, q2
    {
        do1()
    } else if q3, q4
    {
        do2()
    }
}

swiftlint --fix

Expected result:

func foo() {
    if q1, q2 {
        do1()
    } else if q3, q4 {
        do2()
    }
}

Actual result:

func foo() {
    if q1, q2 {
        do1()
    } else if q3, q4
          do2()
    }
}

Environment

  • SwiftLint version 0.55.1
@mildm8nnered mildm8nnered added the bug Unexpected and reproducible misbehavior. label May 23, 2024
swiftty added a commit to swiftty/SwiftLint that referenced this issue Jun 11, 2024
swiftty added a commit to swiftty/SwiftLint that referenced this issue Jun 23, 2024
SimplyDanny pushed a commit to swiftty/SwiftLint that referenced this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants