-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
The current style guide states that when a function call is wrapped on to multiple lines, the closing parenthesis should be on the same line as the last parameter, like this:
let id = getPersonID(
name: "Bob",
age: 42,
registered: true,
note: "Bob is not a real person.")Xcode 15 has a new Refactor > Format to Multiple Lines option and it places the closing bracket on a line of its own, as shown here:
let id = getPersonID(
name: "Bob",
age: 42,
registered: true,
note: "Bob is not a real person."
)I recommend changing the Kodeco style to match what Xcode produces.
Note that Xcode multi-lines function definitions in exactly the way the current style guide uses. It is only the function call style that it changes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels