mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1260] [MERGED] Adjust formatting of argument lists #977
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1260
Author: @bioball
Created: 10/27/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @bioball
Base:
main← Head:trailing-lambda-adjustment📝 Commits (2)
1e24dccAdjust formatting of argument listsa0ae16bAdd comment📊 Changes
3 files changed (+59 additions, -2 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+22 -2)➕
pkl-formatter/src/test/files/FormatterSnippetTests/input/method-call-trailing-lambdas.pkl(+18 -0)➕
pkl-formatter/src/test/files/FormatterSnippetTests/output/method-call-trailing-lambdas.pkl(+19 -0)📄 Description
This changes code so that multiple lambda arguments makes the whole argument list wrap.
Improves the readability of code like:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.