Skip to content

Update dependency nicklockwood/SwiftFormat to v0.56.3 #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 16, 2024

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor 0.54.6 -> 0.56.3

Release Notes

nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)

v0.56.3

Compare Source

  • Fixed issue where trailingCommas rule would insert commas in closure types and tuple types used in typealaises (not supported in Swift 6.1)

v0.56.2

Compare Source

  • Fixed issues where trailingCommas rule would insert commas in @escpaing or @Sendable closure types (not supported in Swift 6.1)
  • Fixed issue where privateStateVariables rule handled @Previewable attributes on previous line incorrectly

v0.56.1

Compare Source

  • Fixed several issues where trailingCommas rule would insert commas in places not actually supported by Swift 6.1
  • Fixed issue where --wrapeffects option would incorrectly unwrap async let properties following function call
  • Fixed issue where redundantEquatable rule would incorrectly remove == implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuples
  • Fixed issue where extensionAccessControl rule would incorrectly hoist public ACL in @preconcurrency conformances
  • Fixed issue where organizeDeclarations rule would sometimes break property declarations with if expression values

v0.56.0

Compare Source

  • Added wrapMultilineFunctionChains rule to wrap chained method calls
  • Added environmentEntry rule to update SwiftUI EnvironmentValues definitions to use the @Entry macro
  • Added redundantEquatable rule to remove explicit Equatable conformances that would be compiler-synthesized
  • Added preferSwiftTesting rule to migrate XCTest-based tests to Swift Testing
  • Added swiftTestingTestCaseNames rule to remove redundant "test" prefix from Swift Testing test case methods.
  • Added preferCountWhere rule to prefer count(where:) over filter(_:).count
  • Added fileMacro rule to prefer either #file or #fileID, which have the same behavior in Swift 6 and later
  • Added blankLinesAfterGuardStatements rule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.
  • Added privateStateVariables rule to add private access control to @State properties
  • Added emptyExtensions rule to remove extensions that contain no declarations or conformances
  • Added --preserveacronyms option to acronyms rule
  • Added --wrapreturntype never option to wrapArguments rule
  • Updated trailingCommas to support Swift 6.1 trailing comma functionality
  • opaqueGenericParameters now supports protocol requirements without a body
  • --wrapeffects and --wrapreturntype now support protocol requirements and closure types
  • Fixed indentation of trailing closures after chained multiline method call when using same-line closing parens
  • blankLinesAtStartOfScope rule now supports switch cases and closure capture / parameter lists
  • Fixed issue where type under organizeDeclarations line count threshold would ignore swiftformat:sort directives
  • Fixed issue where organizeDeclarations rule would unexpectedly remove non-mark comments
  • Compiling SwiftFormat now requires Swift 5.7+
  • SwiftFormat prerelease builds can now be installed via Homebrew using brew install swiftformat --head. Prerelease builds are subject to breaking changes.

v0.55.6

Compare Source

  • Fixed parsing bugs related to parameter packs (repeat, each keywords)
  • Fixed bug where propertyTypes rule could cause build failure in properties with some type
  • Fixed bug where --callsiteparen balanced would have no effect when using --closingparen same-line
  • Fatal error messages now include the name of the currently-running rule
  • Docker build now uses Swift 6.0.3

v0.55.5

Compare Source

  • Fixed bug with yodaConditions rule mangling generic function calls
  • Fixed indenting of guard else or opening brace following if/switch expression
  • The organizeDeclarations rule no longer treats properties with didSet as computed
  • Improved formatting support for async and throwing closures

v0.55.4

Compare Source

  • Fixed inconsistent indenting of wrapped where clause for switch ... case statements
  • Fixed bug where unusedArguments could remove required arguments in some cases
  • The sortTypealiases rule now correctly handles any keyword

v0.55.3

Compare Source

  • Fixed bug where sortTypealiases rule could mangle generic types, or ones using the any keyword
  • The preferKeyPaths rule now only uses \\.self for Swift 6 and later (fix din't land yet in 5.10)
  • Added speculative fix for plugin artifactbundle not working on ubuntu-latest

v0.55.2

Compare Source

  • Fixed bug where unusedArguments failed to remove arguments that matched switch variable bindings
  • Fixed bug where unusedArguments failed to remove arguments that matched nested function call labels
  • Fixed spurious lint errors for blankLinesAtStartOfScope when using organizeDeclarations rule
  • Fixed bug where indentation errors were incorrectly reported as wrap rule lint errors
  • The preferKeyPaths rule now handles the \\.self case for Swift 5.10 and later
  • Fixed parsing of keyPaths beginning with \.?

v0.55.1

Compare Source

  • Fixed bug where docCommentsBeforeModifiers got confused by enum cases that match modifier names
  • Fixed bug where wrapEnumCases would mangle nested or successive enum declarations
  • Artifact Bundle now includes pre-built binary for ARM-based Linux systems

v0.55.0

Compare Source

  • Added docCommentsBeforeModifiers rule to hoist doc comments above declaration modifiers
  • Added unusedPrivateDeclarations rule to remove unused private or fileprivate declarations
  • Added propertyTypes rule to control the use of inferred or explicit types for properties
  • Renamed the --redundanttype option to --propertytypes as it's shared by both rules
  • Added --ranges preserve and --operatorfunc preserve options
  • Added --languagemode option to specify if you are using Swift 5 or 6 language mode
  • The organizeDeclarations rule can now sort declarations by name/type/visibility/etc
  • Fixed organizeDeclarations bug where --beforemarks unexpectedly matched keywords in function bodies
  • Fixed missing lint output for organizeDeclarations rule
  • Fixed bug in markTypes rule for chained protocol extension names
  • Renamed the confusing --onelineforeach option to --inlinedforeach
  • Git info can now be used in header comments when formatting code from stdin
  • You can now use the --outputtokens option to print output as tokens in JSON format
  • Each rule and test is now defined in a separate file to make it easier to maintain/contribute
  • Updated minimum Swift version for building SwiftFormat to 5.3 (you can still format older Swift code)
  • Docker build now uses static Linux SDK

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 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 Update dependency nicklockwood/SwiftFormat to v0.55.0 Update dependency nicklockwood/SwiftFormat to v0.55.1 Nov 21, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch 2 times, most recently from 77f4f30 to c4bdd41 Compare November 24, 2024 10:30
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.1 Update dependency nicklockwood/SwiftFormat to v0.55.2 Nov 24, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from c4bdd41 to 0f9812a Compare November 27, 2024 01:29
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.2 Update dependency nicklockwood/SwiftFormat to v0.55.3 Nov 27, 2024
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.3 Update dependency nicklockwood/SwiftFormat to v0.55.4 Dec 22, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 0f9812a to 610a236 Compare December 22, 2024 18:22
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.4 Update dependency nicklockwood/SwiftFormat to v0.55.5 Jan 21, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 610a236 to 6250587 Compare January 21, 2025 01:24
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.5 Update dependency nicklockwood/SwiftFormat to v0.55.6 May 2, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 6250587 to 68b49bb Compare May 2, 2025 23:08
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.55.6 Update dependency nicklockwood/SwiftFormat to v0.56.0 May 13, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 68b49bb to 26ea971 Compare May 13, 2025 06:40
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.56.0 Update dependency nicklockwood/SwiftFormat to v0.56.1 May 14, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 26ea971 to 2a96554 Compare May 14, 2025 06:52
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.56.1 Update dependency nicklockwood/SwiftFormat to v0.56.2 May 27, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 2a96554 to 16533aa Compare May 27, 2025 16:51
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.56.2 Update dependency nicklockwood/SwiftFormat to v0.56.3 Jun 5, 2025
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 16533aa to 593518d Compare June 5, 2025 02:01
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