mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #1235] [MERGED] Format lambda chains #956
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/1235
Author: @bioball
Created: 10/9/2025
Status: ✅ Merged
Merged: 10/9/2025
Merged by: @bioball
Base:
main← Head:format-lambda-chains📝 Commits (3)
799fdfeOnly force line on multiple lambda chainscd79610dont keep counting if already past max85b8b1cfn rename📊 Changes
3 files changed (+18 additions, -2 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+14 -2)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-chain.pkl(+2 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-chain.pkl(+2 -0)📄 Description
This changes the formatter to only force line on call chains
with multiple lambdas
With this change, this is kept as a single line:
This is broken into multiple lines, because there are two lambdas:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.