Skip to content

chore(deps): update dependency swiftformat to v0.63.1 - #258

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/swiftformat-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/swiftformat-0.x

Conversation

@renovate

@renovate renovate Bot commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
swiftformat tools minor 0.58.7 → 0.63.1

Release Notes

nicklockwood/SwiftFormat (swiftformat)

v0.63.1

Compare Source

  • Added --locale option for deterministic sorting
  • Added --boolean-guards-in-tests option, defaulting to preserve
  • Updated the default modifier order for convenience to match Apple conventions
  • Fixed sortDeclarations handling of trailing whitespace and comments
  • Fixed preferSwiftStringAPI modifying replacingOccurrences(of: "", with: ...)
  • Fixed disable:next handling in multiline strings
  • Fixed docComments incorrectly converting nested function comments when preceded by executable code
  • Fixed swiftTestingTestCaseNames removing unnamed argument underscores and pluralized acronyms
  • Fixed sortImports treating package imports as unlabeled
  • Fixed indent adding line-wrap indentation to wrapped function names
  • Fixed indent of wrapped case patterns with --indent-case true
  • Fixed preferSwiftTesting adding duplicate default suite attributes
  • Fixed hoistTry placement across infix expressions with trailing closures
  • Fixed building the project with Xcode 27

v0.63.0

Compare Source

  • Added ifExpressions rule to convert ternaries to if expressions
  • Added preferLazyMap rule
  • Added redundantExtendedLifetime rule
  • Added <!-- no-format --> HTML comment syntax for disabling formatting of markdown code blocks
  • Added warning when --enable is used for a rule that is already enabled by default
  • Added --redundant-optional-binding option, defaulting to same-name-only
  • Made --wrapstringinterpolation preserve the default
  • Changed default of --single-line-ternary to convert
  • Distinguished default, opt-in, and deprecated rules in --rules and --rule-info output
  • Updated organizeDeclarations to categorize associatedtype declarations as beforeMarks
  • Updated hoistAwait and hoistTry to automatically detect and preserve autoclosures within same file as definition
  • Updated redundantType and propertyTypes to support more ExpressibleByXLiteral types
  • Updated redundantReturn to preserve bare return in closures where removal would create single-expression body
  • Updated redundantOptionalBinding to convert if let x = property to if let property
  • Updated urlMacro rule to support try #require(URL(string:)) pattern
  • Updated redundantBackticks to preserve backticks on Swift Testing @Test functions
  • Updated swiftTestingTestCaseNames to convert backticked names with test prefix or underscores
  • Updated genericExtensions rule to support collection types
  • Updated unusedPrivateDeclarations to preserve properties used in compiler-generated Equatable and Hashable conformances
  • Increased stack size to 1MB for Linux release builds
  • Fixed redundantClosure false positive for if statements with no else branch
  • Fixed spaces around module selectors in generics
  • Fixed preferForLoop incorrectly applying to dollar-prefixed identifiers
  • Fixed blank line before trailing infix operators
  • Fixed swiftTestingTestCaseNames not adding backticks when required
  • Fixed --preserve-acronyms to work as substring match, not just exact identifier match
  • Fixed genericExtensions rule leaving stray comma with additional where conditions
  • Fixed indent dropping switch case body indentation inside #if with --ifdef no-indent
  • Fixed redundantSwiftUIGroup removing Group(subviews:)
  • Fixed redundantReturn removing redundant returns from switch/if inside a flatMap closure
  • Fixed --ifdef no-indent indentation for method chains and directives
  • Fixed environmentEntry edge cases
  • Fixed redundantInternal stripping required internal inside #if in non-internal extensions
  • Fixed indent of trailing closure in method chain member inside #if
  • Fixed spaceAroundParens spurious violations for keyword identifiers after :: module selector

v0.62.1

Compare Source

  • Several rules have been disabled by default: isEmpty, preferContains, preferFirstWhere, preferCountWhere, preferMinOverSorted, preferFlatMap, emptyExtensions
  • Added --guard-like-if-statements option to noGuardInTests rule, defaulting to preserve

v0.62.0

Compare Source

  • Added redundantSwiftUIGroup rule
  • Added preferContains rule
  • Added preferMinOverSorted rule
  • Added preferFlatMap rule
  • Added preferFirstWhere rule
  • Added --indent-blank-lines option to match the surrounding context
  • Added --line-wrap-threshold option for length-based wrapping
  • Added --type-blank-lines consistent option
  • Added start-only and end-only values to --type-blank-lines
  • Added before-non-local-declarations value for --doc-comments
  • Enabled isEmpty rule by default
  • Split wrapConditionalBodies into wrapIfStatementBodies, wrapIfExpressionBodies, wrapGuardStatementBodies
  • Updated noGuardInTests rule to apply to guard-like if statements, use try #require for boolean conditions
  • Updated redundantSendable rule to be disabled by default, and to skip enums with indirect cases
  • Fixed redundantVariable incorrectly removing variables with modifiers or attributes
  • Fixed preferSwiftTesting spuriously adding UIKit import for UInt types
  • Fixed $name closure parameters incorrectly treated as unused when self has a same-named property
  • Fixed docComments rule incorrectly converting enum case group comments to doc comments
  • Fixed markTypes incorrectly considering top-level macro declarations
  • Fixed blankLinesBetweenScopes incorrectly inserting blank line before #elseif directives
  • Fixed emptyExtensions incorrectly removing extensions containing a freestanding macro declaration
  • Fixed organizeDeclarations incorrectly placing freestanding macro declarations after MARK comments
  • Fixed false positive redundantSendable for indirect enum
  • Fixed spaceAroundParens incorrectly inserting space before Optional.some(...) in subsequent @Test arguments

v0.61.1

Compare Source

  • Fixed race condition when parsing config files
  • Fixed redundantStaticSelf false positive inside closures and nested functions
  • Fixed unsafe keyword dot-spacing edge case
  • Fixed redundantSelf crash on switch expression inside if-let binding chain
  • Fixed redundantEquatable removing manual == for types with Any.Type stored properties

v0.61.0

Compare Source

  • Added wrapCaseBodies rule
  • Added redundantEmptyView rule
  • Added preferSwiftStringAPI rule
  • Added --test-case-access-control option for testSuiteAccessControl rule
  • Updated sortImports to support --import-grouping length,alpha
  • Updated --self-required to support assignment type names like OSLogMessage
  • Updated --suite-name-format default value to preserve
  • Fixed conditional import parsing with access modifiers
  • Fixed infinite loop in organizeDeclarations when opening brace has a trailing comment
  • Fixed closing brace indentation with --trimwhitespace nonblank-lines
  • Fixed indentation of multiline raw string literals with --indent-strings
  • Fixed redundantParens incorrectly removing () from @MainActor closure signatures
  • Fixed wrapping inside parens of function declarations with no parameters
  • Fixed extensionAccessControl incorrectly hoisting public onto extensions of nested internal types
  • Fixed spaceAroundParens incorrectly removing space after nonisolated(nonsending) modifier
  • Fixed noGuardInTests incorrectly transforming guard #available conditions
  • Fixed trailing comma for @convention closures
  • Fixed number handling in Swift Testing test case name conversion
  • Fixed redundantSelf inserting self. inside #if/#elseif compiler directive conditions

v0.60.1

Compare Source

  • Fixed issue where redundantSendable rule would unexpectedly remove Sendable conformance on type defined in public extension
  • Fixed issue where redundantSendable rule would leave behind extra space when removing :
  • Renamed redundantProperty rule to redundantVariable
  • Updated redundantVariable rule to preserve variables with explicit type annotations
  • Updated enumNamespaces rule to preserve Swift Testing suites as structs

v0.60.0

Compare Source

  • Added redundantSwiftTestingSuite rule
  • Added redundantSendable rule
  • Added preferExplicitFalse rule
  • Added support for :: module selector syntax
  • Added support for value generics syntax
  • Updated swiftTestingTestCaseNames to use raw identifiers by default
  • Updated swiftTestingTestCaseNames to use UpperCamelCase for test suite names
  • Updated redundantSelf to handle guard statements
  • Updated unusedArguments to handle for loop variables
  • Updated redundantType to better handle Set literals
  • Updated redundantParents to remove empty parens from attributes
  • Updated sortImports to sort imports by access control
  • Updated blankLinesBetweenImports to preserve indentation when indent disabled
  • Updated unusedPrivateDeclaration rule to preserve private @Test functions
  • Updated preferSwiftTesting rule to convert tests in extensions within the same file
  • Updated --stdin-path to not require the file to actually exist
  • Updated simplifyGenericConstraints to avoid adding duplicate constraints
  • Updated blankLinesAroundMark to insert blank line before MARK at start of scope when allowed by blankLinesAtStartOfScope config
  • Updated redundantEquatable to preserve == implementation in types with Strideable conformance
  • Fixed handling of switch statements with #if blocks in several rules
  • Fixed issue where async function declarations were wrapped using wrapArguments instead of wrapParameters
  • Fixed issue where redundantViewBuilder would remove @ViewBuilder from protocol members
  • Fixed redundantSelf parsing issue with throwing closure return types and switch expressions in if let condition
  • Fixed trailingCommas rule incorrectly adding commas to if #available checks
  • Fixed guard...else indentation in wrapArguments with wrap-conditions
  • Fixed issue where simplifyGenericConstraints would leave dangling where keyword in protocol members
  • Fixed issue where trailingCommas didn't handle closure capture lists with macro expressions
  • Fixed indentation for closure parameters on separate lines
  • Fixed issue where .init would be removed in code like [Foo].init { ... } (not supported until Swift 6.4).
  • Fixed issue where .swift-version files were read from excluded directories
  • Fixed incorrect replacement of && operator with , inside a ternary condition
  • Fixed unusedArguments bug in code with try? await
  • Fixed handling of MainActor attributes in redundantViewBuilder

v0.59.1

Compare Source

  • Reverted changes to indent rule --ifdef handling from 0.59.0
  • Updated docComments rule to use doc comments on nested functions and handle conditional compilation blocks in function bodies
  • Updated spaceAroundBrackets to preserve space between global actor attribute and closure capture list
  • Updated redundantMemberwiseInit to preserve inits with attributes
  • Fixed handling of any keyword in sortTypealiases rule
  • Resolved build issue related to macOS 13 SDK availability

v0.59.0

Compare Source

  • Added simplifyGenericConstraints rule
  • Added validateTestCases rule
  • Added testSuiteAccessControl rule
  • Added wrapPropertyBodies rule
  • Added wrapFunctionBodies rule
  • Added redundantViewBuilder rule
  • Added --ifdef preserve option to indent rule
  • Added --prefer-synthesized-init-for-internal-structs option to redundantMemberwiseInit rule
  • Enabled more rules by default: blankLinesBetweenImports, docComments, emptyExtensions, environmentEntry, noForceTryInTests, noForceUnwrapInTests, redundantAsync, redundantEquatable, redundantMemberwiseInit, redundantProperty, redundantThrows
  • Updated typeSugar to only preserve explicit Optional<T> in structs with a synthesized memberwise initializer
  • Updated closing paren of single-argument functions and collections to wrap if needed
  • Updated redundantMemberwiseInit rule to support result builder attributes
  • Improved how organizeDeclarations handles structs with a synthesized memberwise initializer
  • Updated docComments rule to preserve formatting of comments with directives
  • Fixed --ifdef no-indent handling of method chains and nested directives
  • Fixed issue where XMLReporter did not properly escape strings
  • Fixed support for unsafe keyword
  • Fixed edge cases in spaceAroundBrackets rule
  • Fixed crash in sortTypealiases rule
  • Fixed issue where redundantSelf rule could crash if encountering a function with no body (e.g.@_silgen_name)

Configuration

📅 Schedule: (in timezone America/Chicago)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) June 28, 2026 12:47
@renovate
renovate Bot force-pushed the renovate/swiftformat-0.x branch 6 times, most recently from 81918bf to abf986f Compare July 4, 2026 13:18
@renovate
renovate Bot force-pushed the renovate/swiftformat-0.x branch from abf986f to c2cd3bb Compare July 6, 2026 20:38
@renovate renovate Bot changed the title chore(deps): update dependency swiftformat to v0.61.1 chore(deps): update dependency swiftformat to v0.62.0 Jul 6, 2026
@renovate
renovate Bot force-pushed the renovate/swiftformat-0.x branch from c2cd3bb to 7c25507 Compare July 7, 2026 17:02
@renovate renovate Bot changed the title chore(deps): update dependency swiftformat to v0.62.0 chore(deps): update dependency swiftformat to v0.62.1 Jul 7, 2026
@renovate
renovate Bot force-pushed the renovate/swiftformat-0.x branch from 7c25507 to ff98a46 Compare August 30, 2026 21:02
@renovate renovate Bot changed the title chore(deps): update dependency swiftformat to v0.62.1 chore(deps): update dependency swiftformat to v0.63.0 Aug 30, 2026
@renovate
renovate Bot force-pushed the renovate/swiftformat-0.x branch from ff98a46 to c7b0bc9 Compare October 1, 2026 04:20
@renovate renovate Bot changed the title chore(deps): update dependency swiftformat to v0.63.0 chore(deps): update dependency swiftformat to v0.63.1 Oct 1, 2026
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.

0 participants