Update dependency nicklockwood/SwiftFormat to v0.56.3 #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.54.6
->0.56.3
Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.56.3
Compare Source
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
trailingCommas
rule would insert commas in@escpaing
or@Sendable
closure types (not supported in Swift 6.1)privateStateVariables
rule handled@Previewable
attributes on previous line incorrectlyv0.56.1
Compare Source
trailingCommas
rule would insert commas in places not actually supported by Swift 6.1--wrapeffects
option would incorrectly unwrapasync let
properties following function callredundantEquatable
rule would incorrectly remove==
implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuplesextensionAccessControl
rule would incorrectly hoistpublic
ACL in@preconcurrency
conformancesorganizeDeclarations
rule would sometimes break property declarations with if expression valuesv0.56.0
Compare Source
wrapMultilineFunctionChains
rule to wrap chained method callsenvironmentEntry
rule to update SwiftUIEnvironmentValues
definitions to use the@Entry
macroredundantEquatable
rule to remove explicitEquatable
conformances that would be compiler-synthesizedpreferSwiftTesting
rule to migrate XCTest-based tests to Swift TestingswiftTestingTestCaseNames
rule to remove redundant "test" prefix from Swift Testing test case methods.preferCountWhere
rule to prefercount(where:)
overfilter(_:).count
fileMacro
rule to prefer either#file
or#fileID
, which have the same behavior in Swift 6 and laterblankLinesAfterGuardStatements
rule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.privateStateVariables
rule to addprivate
access control to@State
propertiesemptyExtensions
rule to remove extensions that contain no declarations or conformances--preserveacronyms
option toacronyms
rule--wrapreturntype never
option towrapArguments
ruletrailingCommas
to support Swift 6.1 trailing comma functionalityopaqueGenericParameters
now supports protocol requirements without a body--wrapeffects
and--wrapreturntype
now support protocol requirements and closure typesblankLinesAtStartOfScope
rule now supports switch cases and closure capture / parameter listsorganizeDeclarations
line count threshold would ignoreswiftformat:sort
directivesorganizeDeclarations
rule would unexpectedly remove non-mark commentsbrew install swiftformat --head
. Prerelease builds are subject to breaking changes.v0.55.6
Compare Source
repeat
,each
keywords)propertyTypes
rule could cause build failure in properties withsome
type--callsiteparen balanced
would have no effect when using--closingparen same-line
v0.55.5
Compare Source
yodaConditions
rule mangling generic function callselse
or opening brace followingif
/switch
expressionorganizeDeclarations
rule no longer treats properties withdidSet
as computedv0.55.4
Compare Source
where
clause forswitch ... case
statementsunusedArguments
could remove required arguments in some casessortTypealiases
rule now correctly handlesany
keywordv0.55.3
Compare Source
sortTypealiases
rule could mangle generic types, or ones using theany
keywordpreferKeyPaths
rule now only uses\\.self
for Swift 6 and later (fix din't land yet in 5.10)artifactbundle
not working onubuntu-latest
v0.55.2
Compare Source
unusedArguments
failed to remove arguments that matched switch variable bindingsunusedArguments
failed to remove arguments that matched nested function call labelsblankLinesAtStartOfScope
when usingorganizeDeclarations
rulewrap
rule lint errorspreferKeyPaths
rule now handles the\\.self
case for Swift 5.10 and later\.?
v0.55.1
Compare Source
docCommentsBeforeModifiers
got confused byenum
cases that match modifier nameswrapEnumCases
would mangle nested or successiveenum
declarationsv0.55.0
Compare Source
docCommentsBeforeModifiers
rule to hoist doc comments above declaration modifiersunusedPrivateDeclarations
rule to remove unusedprivate
orfileprivate
declarationspropertyTypes
rule to control the use of inferred or explicit types for properties--redundanttype
option to--propertytypes
as it's shared by both rules--ranges preserve
and--operatorfunc preserve
options--languagemode
option to specify if you are using Swift 5 or 6 language modeorganizeDeclarations
rule can now sort declarations by name/type/visibility/etcorganizeDeclarations
bug where--beforemarks
unexpectedly matched keywords in function bodiesorganizeDeclarations
rulemarkTypes
rule for chained protocol extension names--onelineforeach
option to--inlinedforeach
--outputtokens
option to print output as tokens in JSON formatConfiguration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.