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

[SR-12111] swift-format needs two iterations to format array element #335

Closed
ahoppen opened this issue Jan 29, 2020 · 0 comments
Closed
Labels
bug Something isn't working swift-format

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Jan 29, 2020

Previous ID SR-12111
Radar None
Original Reporter @ahoppen
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s swift-format
Labels Bug
Assignee dylansturg (JIRA)
Priority Medium

md5: 9d728bc3b3dd6dc0d7f24d1452ffd570

Issue Description:

The following code needs two runs of swift-format to converge at a stable state

extension UseSynthesizedInitializerTests {
    static let __allTests__UseSynthesizedInitializerTests = [
        ("testPublicMemberwiseInitializerIsNotDiagnosed", testPublicMemberwiseInitializerIsNotDiagnosed),
    ]
}

The first run of swift-format outputs

extension UseSynthesizedInitializerTests {
  static let __allTests__UseSynthesizedInitializerTests = [
    ("testPublicMemberwiseInitializerIsNotDiagnosed", testPublicMemberwiseInitializerIsNotDiagnosed
    ),
  ]
}

A second run adjusts the position of ( to

extension UseSynthesizedInitializerTests {
  static let __allTests__UseSynthesizedInitializerTests = [
    (
      "testPublicMemberwiseInitializerIsNotDiagnosed", testPublicMemberwiseInitializerIsNotDiagnosed
    ),
  ]
} 
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working swift-format
Projects
None yet
Development

No branches or pull requests

1 participant