Skip to content

chore(deps): update dependency nicklockwood/swiftformat to v0.64.5 - #160

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

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

Conversation

@renovate

@renovate renovate Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor 0.61.1 → 0.64.5

Release Notes

nicklockwood/SwiftFormat

v0.64.5

Compare Source

  • Fixed filtered config sections applying to files that do not match, and made matching sections apply in order
  • Improved handling of unsafe in for loops and expression parsing
  • Fixed unusedArguments removing arguments referenced by lifetime attributes
  • Fixed redundantEquatable removing == when stored properties are conditionally compiled
  • Fixed preferForLoop converting forEach calls used as expressions
  • Fixed noForceUnwrapInTests converting force unwraps inside key paths
  • Fixed hoistTry placement around comments, member chains after closures, and multiline declarations
  • Fixed environmentEntry placing default values after attributes on separate lines
  • Fixed braces joining closure statements onto preceding closing braces
  • Fixed redundantClosure treating parentheses on a new line as a call
  • Fixed redundantReturn removing early returns in branches ending with throw
  • Fixed extensionAttributes doubling comment indentation after removed attributes
  • Updated duplicateImports to remove ordinary duplicate imports across code boundaries
  • Fixed docComments leaving trailing spaces when converting documentation comments

v0.64.4

Compare Source

  • Fixed redundantReturn removing required returns when nested conditional branches all throw
  • Updated nestedIf to flatten nested else { if ... } branches into else if chains
  • Fixed command-line handling of paths after the -- end-of-options separator
  • Fixed CLI warning tests hanging while waiting for stdin when run in isolation

v0.64.3

Compare Source

  • Fixed andOperator replacing && with commas inside ternary expression branches
  • Fixed trailingClosures attaching a parenthesized closure on a new line to the preceding statement

v0.64.2

Compare Source

  • Fixed severe indent performance regression on large arrays of multiline initializers
  • Improved handling of #if directives in single-expression bodies, including return removal and SwiftUI formatting
  • Fixed unreachable-code warnings when building JSON encoding code with newer Swift versions
  • Fixed Windows release build setup

v0.64.1

Compare Source

  • Fixed nestedIf and repeatedGuard losing condition wrapping when merging statements
  • Fixed wrapArguments wrapping condition lists when line breaks occur only inside individual clauses
  • Fixed wrapEnumCases skipping cases declared after a raw value
  • Fixed propertyTypes dropping .init before a force unwrap or trailing closure
  • Fixed redundantReturn removing required bare returns from do throws(...) bodies
  • Fixed redundantSelf missing local variables declared after a trailing closure
  • Fixed redundantOverload removing overloads in types that declare a conformance
  • Fixed braces moving opening braces onto conditional compilation directive lines
  • Improved indentation and wrapping of multiline if and guard conditions

v0.64.0

Compare Source

  • Added --snapshot feature for incrementally adopting formatting without changing files that match a saved snapshot
  • Added --unknown-options error|warn|ignore for handling unknown rules, options, and unsupported option values
  • Added --color auto|always|never to control colored command-line output
  • Added nestedIf rule to merge nested if statements
  • Added repeatedGuard rule to merge consecutive guard statements with identical bodies
  • Added redundantEnumerated rule to remove unused enumeration indices from for loops
  • Added extensionAttributes rule to hoist common member attributes onto extensions
  • Added contentBuilder rule, replacing redundantViewBuilder, with --content-builder and --prefer-content-builder options
  • Added commonTypos rule, with --typo-visibility, --typos, and --ignore-typos options
  • Added forWhere rule with --for-where always|never
  • Added redundantOverload rule to replace forwarding overloads with default arguments
  • Added preferStructSwiftTestingSuites rule
  • Added wrapClosureBodies, wrapDoBodies, and wrapSingleLineStrings rules
  • Added header-creation-date-after: config filters for applying rules based on file header dates
  • Added --scope-blank-lines remove|preserve for function bodies, closures, and statement blocks
  • Added --wrap-single-line-enum-cases option, defaulting to false
  • Added --acronym-visibility option, defaulting to internal
  • Added --blank-line-after-switch-case never option
  • Added --hoist-imports hoist|preserve option, defaulting to hoist
  • Added --excluded-declaration-types option for the docComments rule
  • Added attributes-last import grouping and made import grouping order configurable
  • Added support for sorting array and dictionary literals with swiftformat:sort directives
  • Updated SwiftUI rules to support @ContentBuilder
  • Updated redundantExtendedLifetime to handle write-only references and underscored assignments
  • Updated redundantParens to handle optional opaque types in Swift 6.4
  • Updated noForceUnwrapInTests to handle force unwraps on the RHS of operators and place try at the start of the expression
  • Renamed privateStateVariables to privateSwiftUIDynamicProperties and expanded it to other SwiftUI dynamic properties in views and view modifiers
  • Fixed noForceUnwrapInTests using stale function body ranges and placing try before assignment targets
  • Fixed indentation of multiline conditions, method chains, closures, and wrapped case patterns
  • Fixed redundantSelf and redundantStaticSelf modifying code outside the requested line range
  • Fixed redundantReturn removing required returns before expressions in Void functions
  • Fixed formatting of read and modify accessors
  • Fixed directive handling performance with multiline strings
  • Fixed organizeDeclarations timeouts when declarations share a line
  • Fixed crash in organizeDeclarations rule when opening brace line has a trailing comment
  • Improved formatting performance and reduced repeated parsing and configuration work
  • Preserved unchanged editor lines when formatting in Xcode
  • SwiftFormat now excludes .build, Build, and DerivedData directories from formatting/linting by default
  • Removed CocoaPods distribution and the prebuilt binary from the repository (use Swift Package Manager or release downloads instead)

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

Configuration

📅 Schedule: (UTC)

  • 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 becomes conflicted, 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 changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.62.0 chore(deps): update dependency nicklockwood/swiftformat to v0.62.1 Jul 7, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 7659140 to 76c9628 Compare July 7, 2026 15:08
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.62.1 chore(deps): update dependency nicklockwood/swiftformat to v0.63.0 Aug 30, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 76c9628 to a5475a9 Compare August 30, 2026 21:36
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from a5475a9 to 67042c9 Compare September 26, 2026 08:52
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.63.0 chore(deps): update dependency nicklockwood/swiftformat to v0.63.1 Oct 1, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 67042c9 to 73329b4 Compare October 1, 2026 03:23
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 73329b4 to eadc4f9 Compare October 17, 2026 00:34
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.63.1 chore(deps): update dependency nicklockwood/swiftformat to v0.64.0 Oct 17, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.64.0 chore(deps): update dependency nicklockwood/swiftformat to v0.64.1 Oct 23, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from eadc4f9 to eba4d0f Compare October 23, 2026 00:30
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.64.1 chore(deps): update dependency nicklockwood/swiftformat to v0.64.2 Oct 25, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from eba4d0f to ef29479 Compare October 25, 2026 20:57
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.64.2 chore(deps): update dependency nicklockwood/swiftformat to v0.64.3 Oct 26, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from ef29479 to a0e3fa4 Compare October 26, 2026 11:44
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.64.3 chore(deps): update dependency nicklockwood/swiftformat to v0.64.4 Oct 27, 2026
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from a0e3fa4 to f74c23d Compare October 27, 2026 09:55
@renovate
renovate Bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from f74c23d to 29a00ce Compare October 31, 2026 21:39
@renovate renovate Bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.64.4 chore(deps): update dependency nicklockwood/swiftformat to v0.64.5 Oct 31, 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