Skip to content

v0.2.0

Latest

Choose a tag to compare

@0xLeif 0xLeif released this 25 Apr 16:53
9e3813a

Changed

  • .swift-format.json: disable UseTripleSlashForDocumentationComments so /** ... */ block doc comments are preserved (0xLeif uses /// for short docs and /** */ for longer 3+ line docs).
  • .swift-format.json: enable lineBreakBeforeEachArgument so partially-split argument lists become one-arg-per-line.

Added

  • 104 integration tests in BundledConfigFormatTests and BundledConfigLintTests that pipe horrible Swift code through the real swift-format binary and verify the bundled config produces the expected 0xLeif-style output (or reports the expected lint warning).
  • SwiftFormatRunner test helper plus assertFormatted, assertLintFinding, assertNoLintFinding utilities.
  • 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.bundledConfigPath accessor for tests to locate the bundled .swift-format.json.

Fixed

  • Plugin.swift and ProtocolHandler.swift reformatted with the bundled config so the project dogfoods its own style.

Full Changelog: v0.1.0...v0.2.0