You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #1300 adds swift format lint to CI and verify.sh, rules only. This issue stays open for what it leaves out:
Layout is not checked. The lint runs with --debug-disable-pretty-print, so indentation, line breaks and line length (130 is in .swift-format but not enforced) are skipped. With the tuned config about 3,200 layout findings remain, from hand layout that swift-format has no setting for.
Four rules are off because the code breaks them widely. Each could be turned on in its own PR: NoAccessLevelOnExtensionDeclaration (7 places), OneVariableDeclarationPerLine (161), OrderedImports (218, mostly @testable import listed first), DoNotUseSemicolons (820).
A full reformat with this config would change 276 of 422 files (about 2,700 lines removed, 5,600 added) and split the one-line statements the code uses on purpose. Treat it as a style decision, not cleanup.
Counts are from the default-config run on 2026-12-03 (swift-format 6.3.0 in CI, 6.4.3 locally).
Activity
Skeyelab commentedon Dec 3, 2026
PR #1300 adds
swift format lintto CI andverify.sh, rules only. This issue stays open for what it leaves out:--debug-disable-pretty-print, so indentation, line breaks and line length (130 is in.swift-formatbut not enforced) are skipped. With the tuned config about 3,200 layout findings remain, from hand layout that swift-format has no setting for.NoAccessLevelOnExtensionDeclaration(7 places),OneVariableDeclarationPerLine(161),OrderedImports(218, mostly@testable importlisted first),DoNotUseSemicolons(820).Counts are from the default-config run on 2026-12-03 (swift-format 6.3.0 in CI, 6.4.3 locally).
🤖 Generated with Claude Code
swift format lint in CI and verify.sh (#1165) (#1300)