Skip to content

Wrap each argument on its own line - #1

Merged
0xLeif merged 1 commit into
mainfrom
config/one-param-per-line
Apr 24, 2026
Merged

Wrap each argument on its own line#1
0xLeif merged 1 commit into
mainfrom
config/one-param-per-line

Conversation

@0xLeif

@0xLeif 0xLeif commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Set lineBreakBeforeEachArgument=true so long function declarations and call sites break one parameter per line, matching the CorvidLabs CLAUDE.md style example. Short calls stay inline.
  • Mark 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.

Verified against real 0xLeif repos

Ran swift-format with the new config against 5 local 0xLeif repos:

Repo Files changed Notes
AppState (newest, Feb 2026) 1/36 Only wraps a 4-generic-param list — already style-compliant
Cache 21/27 #if indent + /**///
Fork 6/9 Trailing whitespace
Later 10/24 /**///, #if indent
Waiter 2/2 /**///, case letcase .x(let y)

All diffs sampled are legitimate CLAUDE.md enforcement.

Test plan

  • swift build passes
  • swift test passes (11 tests)
  • fledge swift-format (format mode) works end-to-end on a sample project
  • fledge swift-format --lint prints violations, exit 0
  • fledge swift-format --check prints errors, exit 1

🤖 Generated with Claude Code

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>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@0xLeif
0xLeif merged commit bbe09cd into main Apr 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant