Wrap each argument on its own line - #1
Merged
Merged
Conversation
Sets lineBreakBeforeEachArgument=true so long function declarations and call sites break one parameter per line, matching the CorvidLabs style guide example. Short calls stay inline. Verified against 0xLeif/AppState (newest, 36 files): only 1 file needed wrapping changes. Older repos (Cache, Fork, Later, Waiter) receive legitimate style enforcement (triple-slash docs, trailing whitespace, case binding style). Also marks protocol-mode end-to-end verification complete in specs/format/tasks.md and specs/lint/tasks.md after confirming `fledge swift-format`, `--lint`, and `--check` all work via the installed plugin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request updates the .swift-format.json configuration to enable line breaks before each argument and marks the end-to-end verification of the Fledge protocol mode as completed in the format and lint task specifications. I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lineBreakBeforeEachArgument=trueso long function declarations and call sites break one parameter per line, matching the CorvidLabs CLAUDE.md style example. Short calls stay inline.specs/format/tasks.mdandspecs/lint/tasks.mdafter confirmingfledge swift-format,--lint, and--checkall work via the installed plugin.Verified against real 0xLeif repos
Ran
swift-formatwith the new config against 5 local 0xLeif repos:#ifindent +/**→////**→///,#ifindent/**→///,case let→case .x(let y)All diffs sampled are legitimate CLAUDE.md enforcement.
Test plan
swift buildpassesswift testpasses (11 tests)fledge swift-format(format mode) works end-to-end on a sample projectfledge swift-format --lintprints violations, exit 0fledge swift-format --checkprints errors, exit 1🤖 Generated with Claude Code