-
Notifications
You must be signed in to change notification settings - Fork 2
Update dependency nicklockwood/SwiftFormat to v0.58.6 #57
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
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/nicklockwood-swiftformat-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b74eb29 to
2a97f6e
Compare
2a97f6e to
ffb9e84
Compare
ffb9e84 to
78a873b
Compare
78a873b to
b470e58
Compare
b470e58 to
74fa657
Compare
74fa657 to
1934c03
Compare
1934c03 to
4fdd928
Compare
4fdd928 to
32fd294
Compare
32fd294 to
37b7bcd
Compare
37b7bcd to
55e140d
Compare
55e140d to
02f84cd
Compare
02f84cd to
df552de
Compare
df552de to
264159a
Compare
264159a to
73165cd
Compare
73165cd to
41c13b5
Compare
eac5ea2 to
37f9964
Compare
37f9964 to
b870069
Compare
b870069 to
35dea68
Compare
35dea68 to
1fe53da
Compare
1fe53da to
9241d1d
Compare
9241d1d to
78d0e07
Compare
78d0e07 to
717b741
Compare
717b741 to
ddcf878
Compare
ddcf878 to
28ecb19
Compare
28ecb19 to
797c9cb
Compare
797c9cb to
5e22ef4
Compare
5e22ef4 to
d3400b7
Compare
d3400b7 to
7513d6a
Compare
7513d6a to
86d5855
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.48.4->0.58.6Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.58.6Compare Source
docCommentsnot being applied correctly after conditionalswitch...case#selector(...)expressions--filelistare now formatted concurrentlyreturnremoval insiderepeat...whileloopstrailingClosuresrule and property wrappersv0.58.5Compare Source
returnkeyword insidefor ... whereloopsfor await case ...loopsXCTUnwrapto the default exclusion list forhoistTryv0.58.4Compare Source
trailingCommarule incorrectly inserting commas inside typedthrowsopaqueGenericParametersrule could cause build errors with existential typesunusedArgumentswhen argument is only referenced inside a macronoGuardInTestsrule now preserves custom failure messagesnoGuardInTestsrule no longer addsthrowsto test methods when not neededv0.58.3Compare Source
[n of X]syntax forInlineArrayin Swift 6.2redundantInitrule could leave orphaned parenthesesredundantInitwas incorrectly applied to(Foo.self as Bar.Type)expressionsredundantSelfruleacronymsrule where one acronym overlaps anotherwrapArgumentsrule--unknown-rulesoption to support environments with older SwiftFormat versionsv0.58.2Compare Source
modifierOrderrule confusedasynceffect forasyncmodifierredundantInitrule to apply toinitcalls with single trailing closureREADME.mdto reflect actual precedence behavior between.swift-versionfiles and--swift-versionarguments.v0.58.1Compare Source
asynceffect could be confused forasyncmodifier, breakingdocCommentsBeforeModifiersrule in protocol body with async functionswrapAttributesrule would unexpectedly wrapasynceffect.swift-versionfile was ignored if not also using config fileredundantAsyncignoredawaitkeyword in string interpolationacronymsrule would incorrectly always capitalize potentially matching acronyms one letter before end of identifierredundantLetrule to handle#Previewmacrov0.58.0Compare Source
noForceUnwrapInTestsruleredundantThrowsruleredundantAsyncrulepreferFinalClassesruletrailingCommasrule to handle cases now supported by Swift 6.2trailingClosuresrule to support multiple trailing closures--allow-partial-wrapping falseoption to disallow partial wrapping of functions and collectionspropertyTypesrule to support array, dictionary, and set literalsorganizeDeclarationsthreshold options to organize types without adding marks--type-body-marks removeoption toorganizeDeclarationsorganizeDeclarationsto support organizing protocol bodiesorganizeDeclarationsto treatassociatedtypedeclarations as nested types, liketypealiasdeclarations.--blank-line-after-switch-case alwaysoption toblankLineAfterSwitchCase--default-test-suite-attributesoption topreferSwiftTestingrule--markdown-filesoptions tostrictandlenientredundantPublicrule to apply to private typestrailingClosuresandtrailingCommasrules to support optional function callsmarkTypesrule wouldn't add marks after extensionsredundantPublicbroke@_spiannotated membershoistTryrule could break@TestattributeredundantVoidReturnTyperule could accidentally remove closure typeblankLinesAroundMarknot ignoring trailing comments at start of scopethrowingTestsrule tonoForceTryInTestssinglePropertyPerLineto preserveasync letdeclarationsv0.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.v0.56.4Compare Source
trailingCommasrule would not insert trailing commas in function declarations with return typetrailingCommasrule would not insert trailing commas in array literals following!operatorunusedArgumentsrule would ignore function declarations with trailing commasvoidrule would not handle()types in typealiasesredundantLetrule did not detect code inside result builders when nested in conditional compilation blocksv0.56.3Compare Source
trailingCommasrule would insert commas in closure types and tuple types used in typealaises (not supported in Swift 6.1)v0.56.2Compare Source
trailingCommasrule would insert commas in@escpaingor@Sendableclosure types (not supported in Swift 6.1)privateStateVariablesrule handled@Previewableattributes on previous line incorrectlyv0.56.1Compare Source
trailingCommasrule would insert commas in places not actually supported by Swift 6.1--wrapeffectsoption would incorrectly unwrapasync letproperties following function callredundantEquatablerule would incorrectly remove==implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuplesextensionAccessControlrule would incorrectly hoistpublicACL in@preconcurrencyconformancesorganizeDeclarationsrule would sometimes break property declarations with if expression valuesv0.56.0Compare Source
wrapMultilineFunctionChainsrule to wrap chained method callsenvironmentEntryrule to update SwiftUIEnvironmentValuesdefinitions to use the@EntrymacroredundantEquatablerule to remove explicitEquatableconformances that would be compiler-synthesizedpreferSwiftTestingrule to migrate XCTest-based tests to Swift TestingswiftTestingTestCaseNamesrule to remove redundant "test" prefix from Swift Testing test case methods.preferCountWhererule to prefercount(where:)overfilter(_:).countfileMacrorule to prefer either#fileor#fileID, which have the same behavior in Swift 6 and laterblankLinesAfterGuardStatementsrule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.privateStateVariablesrule to addprivateaccess control to@StatepropertiesemptyExtensionsrule to remove extensions that contain no declarations or conformances--preserveacronymsoption toacronymsrule--wrapreturntype neveroption towrapArgumentsruletrailingCommasto support Swift 6.1 trailing comma functionalityopaqueGenericParametersnow supports protocol requirements without a body--wrapeffectsand--wrapreturntypenow support protocol requirements and closure typesblankLinesAtStartOfScoperule now supports switch cases and closure capture / parameter listsorganizeDeclarationsline count threshold would ignoreswiftformat:sortdirectivesorganizeDeclarationsrule would unexpectedly remove non-mark commentsbrew install swiftformat --head. Prerelease builds are subject to breaking changes.v0.55.6Compare Source
repeat,eachkeywords)propertyTypesrule could cause build failure in properties withsometype--callsiteparen balancedwould have no effect when using--closingparen same-linev0.55.5Compare Source
yodaConditionsrule mangling generic function callselseor opening brace followingif/switchexpressionorganizeDeclarationsrule no longer treats properties withdidSetas computedv0.55.4Compare Source
whereclause forswitch ... casestatementsunusedArgumentscould remove required arguments in some casessortTypealiasesrule now correctly handlesanykeywordv0.55.3Compare Source
sortTypealiasesrule could mangle generic types, or ones using theanykeywordpreferKeyPathsrule now only uses\\.selffor Swift 6 and later (fix din't land yet in 5.10)artifactbundlenot working onubuntu-latestv0.55.2Compare Source
unusedArgumentsfailed to remove arguments that matched switch variable bindingsunusedArgumentsfailed to remove arguments that matched nested function call labelsblankLinesAtStartOfScopewhen usingorganizeDeclarationsrulewraprule lint errorspreferKeyPathsrule now handles the\\.selfcase for Swift 5.10 and later\.?v0.55.1Compare Source
docCommentsBeforeModifiersgot confused byenumcases that match modifier nameswrapEnumCaseswould mangle nested or successiveenumdeclarationsv0.55.0Compare Source
docCommentsBeforeModifiersrule to hoist doc comments above declaration modifiersunusedPrivateDeclarationsrule to remove unusedprivateorfileprivatedeclarationspropertyTypesrule to control the use of inferred or explicit types for properties--redundanttypeoption to--propertytypesas it's shared by both rules--ranges preserveand--operatorfunc preserveoptions--languagemodeoption to specify if you are using Swift 5 or 6 language modeorganizeDeclarationsrule can now sort declarations by name/type/visibility/etcorganizeDeclarationsbug where--beforemarksunexpectedly matched keywords in function bodiesorganizeDeclarationsrulemarkTypesrule for chained protocol extension names--onelineforeachoption to--inlinedforeach--outputtokensoption to print output as tokens in JSON formatv0.54.6Compare Source
wrapMultilineStatementBracesruleparseDeclarationswhere incorrect tokens could cause rules to time outorganizeDeclarationswould add extra blank lines if type had blank lines with spacespreferForLooprulev0.54.5Compare Source
unusedArgumentsrulepreferForLoopfailed ifforEachcontainsguard ... else { return }v0.54.4Compare Source
returnwas incorrectly removed insidecatchstatement withwhereclauseopaqueGenericParametersrule being incorrectly applied to functions with typedthrowsspaceAroundBracketsbehaving incorrectly inside a macro invocationunusedArgumentsfalse positive inside multiline string literalreturnresulted in non-compiling code for opaque return typesVoidreturn type is now removed from functions in protocol declarationsunusedArgumentsdidn't handle conditional assignment shadowing correctlyv0.54.3Compare Source
--wrapeffects nevercould unexpectedly remove unrelated code--condassignmentoption (setting this previously had no effect)redundantReturnrule no longer removes conditionalreturns ifconditionalAssignmentis disabledredundantObjcrule now strips implicit@objcattribute for@IBSegueActionfunctionsv0.54.2Compare Source
blankLinesBetweenChainedFunctionsrule now removes blank line after comments in the chainblankLinesBetweenChainedFunctionsrule no longer conflicts withblankLinesAroundMarkredundantInternalremoving requiredinternalkeyword in extensions withwhereclausereturnremoval in conditional blocksredundantNilInitrule insertingnilafteraskeywordv0.54.1Compare Source
--nilInit insertoption is no longer applied to lazy or attributed propertiesblankLinesBetweenChainedFunctionsrule now correctly handles comments in the chain--fragmentmodereturnin conditional blocks--lintmode reporter output when usingstdinv0.54.0Compare Source
blankLineAfterSwitchCaserule for inserting blank lines after switch casesconsistentSwitchCaseSpacingrule for ensuring consistent spacing between switch casesredundantPropertyrule for removing variable assignments where value is immediately returnedredundantTypedThrowsrule for stripping redundantNeverorany Errorthrowstypes--reportwithout--reportertype now raises an error if type can't be inferred--reporter xmloption)--typedelimiteroption for controlling spacing around the colon in type definitions--initcoderniloption for returningnilinstead of asserting in unavailableinit?(coder:)fileHeaderrule now uses git info forcreateddate (if available) instead of file systemauthor,author.nameandauthor.emailtokens for file header templates--callsiteparenoption for controlling closing paren placement at function call siteswrapAttributesrule can now be applied differently to computed properties vs stored propertieswrapAttributesrule can now be applied differently to complex (parameterized) vs simple attributes--varattributeswith--storedvarattrs,--computedvarattrsand--complexattrsoptions—-nilinitoption for controlling whetherredundantNilInitadds or removes explicitnil--organizationmode type)organizeDeclarationsfor structs causedsortDeclarationsto have no effectopaqueGenericParameters ruleinitand_modifyproperty accessorspreferForLooprule and tuple argument matchingconditionalAssignmentrule to handle more cases--condassignment after-propertyoptionselfwithin macrosos_logto--selfrequireddefaultsv0.53.10Compare Source
stdoutdirectory when using--output stdoutunusedArgumentsfalse positive for multiline function call arguments~operator--reportor--reporterargumentsstrongifiedSelfremoving required backticks around nonisolatedselfdefaultvalue for--reporter(introduced in 0.53.9)sendingkeywordv0.53.9Compare Source
unusedArgumentswhen shadowing function argument with conditional assignment declaration--linterrors are no longer shown in--quietmode (restores pre-0.53.8 behavior)v0.53.8Compare Source
--strictoption to emit non-zero exit code after applying changes in formatting modeenumNamespacesrule is no longer applied to structs with macros that have generic argumentsopaqueGenericParametersrule is no longer applied to structs with macros or attributesredundantParensspuriously removed parens inside a closureredundantInitmishandled a.initafter a ternary operatorv0.53.7Compare Source
redundantParenswhere first parens inside a closure were spuriously removedwrapEnumCasesrule mangling unindented caseswrapEnumCasesrule no longer wraps cases inside inline enum declarationsredundantInitmetatype heuristic to reduce false positivesv0.53.6Compare Source
.operator inside attribute argumentsredundantTyperule no longer strips required explicit type from@Modelclass default valuesredundantInitdidn't work on collection typesredundantParensrule now correctly handles@MainActorclosureseach Xparameter pack expressions--wrapreturntype if-multilinedidn't work with arrays, dictionaries, tuples, or generic typesspaceAroundParens/Bracketsrules now correctly insert a space afterborrowing/consumingandisolatedimportstatements--doccomments preserveoption to preserve all doc comments, even if not followed by a declarationv0.53.5Compare Source
nonisolated(unsafe)modifierstryorasyncafter a string literal expression--lenientmodestatic/classmodifiersv0.53.4Compare Source
enumNamespacesrule is no longer applied to structs with attributes or macrosnonisolated(unsafe)modifier is now handled correctlydo throws(Type) { ... }clausesv0.53.3Compare Source
preferForLooprule now correctly singularizes loop conditions that end with "cases"preferForLoopmangled throwing or asyncforEachexpressionsorganizeDeclarationswas enabled but excluded declaration type@unknown defaultcasesenumNamespacesrulethrowsv0.53.2Compare Source
hoistAwaitrule could moveawaitbeforetrykeywordredundantSelfrule was confused by@MainActorannotationunusedArgumentsremoved required argument insideguardv0.53.1Compare Source
stdoutdirectory when using--output stdoutunusedArgumentsfalse positive for multiline function call arguments~operator--reportor--reporterargumentsstrongifiedSelfremoving required backticks around nonisolatedselfdefaultvalue for--reporter(introduced in 0.53.9)sendingkeywordv0.53.0Compare Source
preferForLooprule to convertforEach { ... }calls to regularforloopswrapLoopBodiesrule to wrap single-line loop bodies over multiple linesnoExplicitOwnershiprule to remove unwantedborrowingandconsumingmodifierswrapMultilineConditionalAssignmentrule to wrapiforswitchexpressions to new linewrapAttributesrule no longer unwraps attributes if they would exceed--maxwidthtypeSugarrule's--shortoptionalsoption now defaults toexcept-propertiesblankLinesBetweenChainedFunctionsrule by defaultblankLineAfterImportsrule by defaultselfbeing incorrectly inserted beforesetclause in computed propertiesparseType()helper function where qualified types were not recognizedv0.52.11Compare Source
if/switchexpression workaround for Swift 5.9 bug to handleas!castsredundantSelfrulev0.52.10Compare Source
enumNamespacesrule breakingimport struct/classstatementsconditionalAssignmentrule toswitchstatements containing#ifblocksv0.52.9Compare Source
redundantClosureremoving required closure around conditional statementsredundantClosureremoving closure containing conditional expressions inside a method callredundantClosuregenerating invalid code when theredundantReturnrule is disabledas?cast would break build in Swift 5.9blankLineAfterImportsintroducing spurious blank line before@preconcurrencyattributeenumNamespacesrule wouldn't be applied immediately after animportstatementswitchcase with multiplewhereclauses could be parsed incorrectlyv0.52.8Compare Source
redundantClosurerule in cases where anif/switchexpression is not permitteddocCommentsrule now correctly handles macro commentsdocCommentsrule is now only applied to a comment block if all lines match the patternv0.52.7Compare Source
conditionalAssignmentandredundantClosurerules would be applied incorrectlyredundantClosurerule leaving straytryorawaitkeywords behindv0.52.6Compare Source
redundantReturnrule was incorrectly applied to consecutiveifstatements in Swift 5.9v0.52.5Compare Source
redundantReturnrule could break fallible initializers in Swift 5.9docCommentsrule inside#ifstatementsdocCommentsrule no longer treats comments starting withNote:as a special directive#ifstatements immediately preceded by a commentbracesrule when no--maxwidthis specified--asynccapturinglistv0.52.4Compare Source
docCommentsrule incorrectly replacing comments inside switch cases and if/guard conditionsredundantLetrule removing requiredletinsideViewBuildermodifiersredundantLetrule removing requiredletafter@MainActoror@Sendable--wrapconditions after-firstif first line of condition is a commentsortTypealiasesrule to also remove duplicate protocols in declarationv0.52.3Compare Source
tryinside multiline string literal interpolationstryinside generic type initializer callsreturnstatements added while debugging would be incorrectly removedv0.52.2Compare Source
Selfbeing incorrectly removed inletorif letexpressions// swiftformat:disabledirective not working forredundantReturnrulev0.52.1Compare Source
if/switchexpression workaround for Swift 5.9 bug to handleas!castsredundantSelfrulev0.52.0Compare Source
redundantInternalrule to remove redundantinternalaccess modifierssortTypealiasesrule to sorttypealiastypes alphabeticallyheaderFileNamerule to ensure filename in header comment matches actual fileredundantStaticSelfrule to remove redundantselfinside static functionsblankLinesBetweenChainedFunctionsrule to remove blank lines inside function chainsapplicationMainrule to remove obsolete@UIApplicationMainand@NSApplicationMainattributessortedSwitchCasesrule tosortSwitchCasesfor consistencysortedImportsrule tosortImportsfor consistencyreturnis now correctly removed in switch cases with associated valuesredundantSelfruleelsestatement is now preservedv0.51.15Compare Source
unusedArgumentsrule that caused used parameters to be marked unused/operatorv0.51.14Compare Source
v0.51.13Compare Source
redundantSelfrule to be silently disabledunusedArgumentswould remove an argument that was used after anif$identifierpackagekeyword inorganizeDeclarationsrulev0.51.12Compare Source
hoistTrybugs with generics, subscripts and collection literalstry?andtrytryinside an optional functioninwas mistaken for part of aforlooppackageaccess modifierconsumeanddiscardoperatorsborrowingandconsumingmodifiersv0.51.11Compare Source
redundantSelfrulehoistTryrule failed with more than 10tryexpressions at the same scope levelTODO:directives are no longer converted by thedocCommentsrulev0.51.10Compare Source
wrapAttributesrule due toclassdeclaration being mistaken for class-scoped var#ifdefblocksortedSwitchCasesv0.51.9Compare Source
typeSugarrule unwrapping Optionalsome/anywithout inserting required parentheses#ifdefblock after a closing bracev0.51.8Compare Source
redundantSelfremoving non-unwrapped weakselfinside closuresfileprivaterule makinginitprivate when inherited by subclass in the same filehoistPatternLetrule insertingletinside dictionary type literalunusedArgumentsincorrectly removing used argument after conditional compilation blockunusedArgumentsrule error handlingv0.51.7Compare Source
redundantSelfincorrectly insertingselffor local variables declared in capture listblankLineAfterImportsrule inserting blank line before@_spiimportsfileHeaderrule ignoring headers containing URLsv0.51.6Compare Source
selfis now preserved in function bodies inside closures with[weak self]captureshoistTryinside chains of concatenated interpolated strings#elseand#elseifblocksredundantSelfrulev0.51.5Compare Source
--baseconfigoption to replicate old--configbehaviorselfbeing incorrectly inserted inside capture list.initinside#ifstatementsredundantInitglitch inside#ifstatementsredundantSelfinsideif caseexpressionshoistTryfor strings containing multiple interpolation clausesreturnkeyword--funcattributes same-lineunusedArgumentsv0.51.4Compare Source
redundantReturninside if / switch expressions to Swift 5.9+hoistTryandhoistAwaitinside multiline string literalsv0.51.3Compare Source
hoistTryandhoistAwaitrule breaking string interpolationsopaqueGenericParametersrule would remove non-redundant generic typeredundantSelfrule parsing bug affecting string literalsv0.51.2Compare Source
hoistTryrule breaking multiline function chains--asynccapturingand--throwcapturingoptions forhoistTryandhoistAwaitrulesv0.51.1Compare Source
unusedArgumentsrule that caused used parameters to be marked unused/operatorv0.51.0Compare Source
hoistAwaitandhoistTryrules to hoist inlineawait/tryto start of expressionredundantPatternrule to remove redundantletin patternswrapMultilineStatementBracesrules is now applied more consistentlyredundantReturn/Closurerules to supportif/switchexpressions in Swift 5.8conditionalAssignmentrule to assign variables usingif/switchexpressions in Swift 5.8redundantTyperule to supportif/switchexpression assignment Swift 5.8redundantSelfrule to support implicitselfin eligible closures in Swift 5.8.swiftformatfiles when explicit--configfile is provided--wrapenumcases with-valuesoption to only wrap enum cases with values--wrapeffectsoption for wrapping function effectspreferDoublerulev0.50.9Compare Source
--reporteroption for details)redundantTypesometimes stripped in cases where it couldn't be inferredredundantTyperule now supports removing type in more cases where supportedopaqueGenericParametersrulewrapAttributesrule sometimes wrapped inline attributes like@MainActor// swiftformat:optionscomment directives.swiftformatfilev0.50.8Compare Source
redundantBackticksrule no longer removes required comments aroundselfdocCommentsrulesortedSwitchCasesrulesortedSwitchCasesrulevarpropertiesv0.50.7Compare Source
tryorawaitawaitkeywordv0.50.6Compare Source
fileHeaderrule where blank lines were removed after header/var/tmp^characterv0.50.5Compare Source
v0.50.4Compare Source
docCommentsrule to convert between regular and documentation commentsredundantLetrule incorrectly strippingletinside Result Buildersvoidrule in cases whereVoidhas been locally shadowedfileHeaderrule when file only contains header commentwrapwarning for blank linesredundantSelfrulev0.50.3Compare Source
redundantFileprivaterule could break Array extensions using type sugarwrapSingleLineCommentsrule relating to long URLswrapSingleLineCommentshandling of comments containing long URLsopaqueGenericParametersrule is now correctly applied to initializers and subscriptsopaqueGenericParametersandgenericExtensionsto READMEv0.50.2Compare Source
redundantImportsdropping@_implementationOnlyor@_exportedannotationsblankLineAfterImportsbug affecting@_implementationOnlyor@_exportedimportsgenericExtensionsand nested genericsopaqueGenericParametersrulev0.50.1Compare Source
opaqueGenericParameterswhere type constraint depended on another type parameteropaqueGenericParametersrule where type constraint contained closure typeopaqueGenericParametersbroke variadic parameter expressionswrapSingleLineCommentsruleandOperatorrulev0.50.0Compare Source
genericExtensionsrule for simplifying conditional type extensions in Swift 5.7markTypessupport for type definitions in extensionsopaqueGenericParametersrule to use opaque generic parameter syntax where equivalentblankLineAfterImportsruleredundantOptionalBindingrule for simplifyingif letexpressions in Swift 5.7--enumnamespaces structs-onlyoptionwrapSingleLineCommentsrule--swiftversionin the.swiftformatconfig now takes precedence over.swift-versionfile.swiftformatconfig files are no longer mergedv0.49.18Compare Source
unusedArgumentswhen argument is shadowed in aswitchcase statementenumNamespacesrule breakingopenclass declarationsredundantLetremovingletincorrectly inasync letstatement--xcodeindentationoptionv0.49.17Compare Source
<<operatorasync:would expectedly be indentedConfiguration
📅 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.