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

Open
2 tasks done
kapitoshka438 opened this issue May 21, 2024 · 0 comments · May be fixed by #5620
Open
2 tasks done

opening_brace fix is broken #5598

kapitoshka438 opened this issue May 21, 2024 · 0 comments · May be fixed by #5620
Labels

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
swiftty added a commit to swiftty/SwiftLint that referenced this issue Jun 11, 2024
@swiftty swiftty linked a pull request Jun 11, 2024 that will close this issue
swiftty added a commit to swiftty/SwiftLint that referenced this issue Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants