Repository navigation
Changed
.swift-format.json: disableUseTripleSlashForDocumentationCommentsso/** ... */block doc comments are preserved (0xLeif uses///for short docs and/** */for longer 3+ line docs)..swift-format.json: enablelineBreakBeforeEachArgumentso partially-split argument lists become one-arg-per-line.
Added
- 104 integration tests in
BundledConfigFormatTestsandBundledConfigLintTeststhat pipe horrible Swift code through the realswift-formatbinary and verify the bundled config produces the expected 0xLeif-style output (or reports the expected lint warning). SwiftFormatRunnertest helper plusassertFormatted,assertLintFinding,assertNoLintFindingutilities.- Tests for whole-declaration-on-one-line explosion (struct/enum/function bodies crammed onto a single line via
;are expanded into multi-line layout). - Internal
Plugin.bundledConfigPathaccessor for tests to locate the bundled.swift-format.json.
Fixed
Plugin.swiftandProtocolHandler.swiftreformatted with the bundled config so the project dogfoods its own style.
Full Changelog: v0.1.0...v0.2.0