This PR contains the following updates:
Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
Compare Source
- Updated
trailingCommas rule to handle function declarations with generic arguments.
- Updated
--trailing-commas always to preserve trailing commas rather than unnecessarily removing trailing commas in some edge cases.
- Fixed spurious deprecation message when using some non-deprecated options.
Compare Source
- Fixed issue where trailing commas were unexpectedly removed from initializer argument lists when using
--trailing-commas always.
- Fixed issue where
redundantPublic rule didn't handle extensions on types defined in public extensions.
- Added
@Bindable to list of SwiftUI property wrappers used by organizeDeclarations rule.
- Fixed case-sensitivity issue with
preferFileMacro rule.
Compare Source
- Options now use
--kebab-case. Existing option names without dashes remain supported for backwards compatibility. Some options have been renamed to improve clarity.
- Added support for
:this and :previous in comment directives.
- Added support for formatting code blocks in Markdown files.
- Added support for multiple
--config file arguments.
- Added
singlePropertyPerLine rule to convert property declarations defining multiple properties into separate declarations.
- Added
redundantMemberwiseInit rule to remove explicit memberwise initializers that are identical to the struct's compiler-synthesized initializer.
- Added
redundantPublic rule to remove public access control from properties of internal types.
- Added
modifiersOnSameLine rule to keep declaration modifiers on the same line.
- Added
throwingTests rule to prefer using try and throws in unit tests rather than try!.
- Added
noGuardInTests rule to prefer convert guard statements in unit tests to try #require(...) / #expect(...) or try XCTUnwrap(...) / XCTAssert(...).
- Added
urlMacro rule to convert URL(string: "...")! initializers to a provided #URL("...") macro.
- Added
--trailing-commas collections-only and --trailing-commas multi-element-lists options to trailingCommas rule.
- Added
--type-blank-lines insert option to blankLinesAtStartOfScope and blankLinesAtEndOfScope rules.
- Added
--wrap-string-interpolation option to support disabling line wrapping within string interpolation.
- Added
--line-between-guards option to blankLinesAfterGuardStatements rule.
- Added support for SARIF output format.
- Improved performance of the
docComments rule.
- Fixed bug in
docComments rule where trailing comments would be converted to doc comments.
- Fixed bug where
redundantNilInit rule would ignore type bodies with conformances.
- Fixed bug where
wrapEnumCases didn't handle some nested types correctly.
- Fixed issue where
# characters in config files couldn't be escaped.
- Fixed issue where SwiftFormat for Xcode app would generate invalid config files with unescaped
# characters.
- Fixed issue where
--wrap-return-type never didn't respect --allman true.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Uh oh!
There was an error while loading. Please reload this page.
This PR contains the following updates:
from: "0.56.4"->from: "0.57.2"Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.57.2Compare Source
trailingCommasrule to handle function declarations with generic arguments.--trailing-commas alwaysto preserve trailing commas rather than unnecessarily removing trailing commas in some edge cases.v0.57.1Compare Source
--trailing-commas always.redundantPublicrule didn't handle extensions on types defined in public extensions.@Bindableto list of SwiftUI property wrappers used byorganizeDeclarationsrule.preferFileMacrorule.v0.57.0Compare Source
--kebab-case. Existing option names without dashes remain supported for backwards compatibility. Some options have been renamed to improve clarity.:thisand:previousin comment directives.--configfile arguments.singlePropertyPerLinerule to convert property declarations defining multiple properties into separate declarations.redundantMemberwiseInitrule to remove explicit memberwise initializers that are identical to thestruct's compiler-synthesized initializer.redundantPublicrule to remove public access control from properties of internal types.modifiersOnSameLinerule to keep declaration modifiers on the same line.throwingTestsrule to prefer usingtryandthrowsin unit tests rather thantry!.noGuardInTestsrule to prefer convert guard statements in unit tests totry #require(...)/#expect(...)ortry XCTUnwrap(...)/XCTAssert(...).urlMacrorule to convertURL(string: "...")!initializers to a provided#URL("...")macro.--trailing-commas collections-onlyand--trailing-commas multi-element-listsoptions totrailingCommasrule.--type-blank-lines insertoption toblankLinesAtStartOfScopeandblankLinesAtEndOfScoperules.--wrap-string-interpolationoption to support disabling line wrapping within string interpolation.--line-between-guardsoption toblankLinesAfterGuardStatementsrule.docCommentsrule.docCommentsrule where trailing comments would be converted to doc comments.redundantNilInitrule would ignore type bodies with conformances.wrapEnumCasesdidn't handle some nested types correctly.#characters in config files couldn't be escaped.#characters.--wrap-return-type neverdidn't respect--allman true.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.