-
-
Couldn't load subscription status.
- Fork 8
Update dependency nicklockwood/SwiftFormat to v0.58.5 #28
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
c245457 to
3527c8a
Compare
3527c8a to
f54e7bd
Compare
f54e7bd to
9b32e70
Compare
9b32e70 to
f5fffa0
Compare
f5fffa0 to
e8bcf1f
Compare
e8bcf1f to
4442e1a
Compare
4442e1a to
23301f7
Compare
23301f7 to
b9b65a3
Compare
b9b65a3 to
57a4f28
Compare
57a4f28 to
7da75e8
Compare
7da75e8 to
e0fafe0
Compare
e0fafe0 to
132f9ee
Compare
132f9ee to
1628105
Compare
1628105 to
cbcdd16
Compare
cbcdd16 to
a7a5ad3
Compare
eab8f2c to
abc135e
Compare
abc135e to
ac487bc
Compare
ac487bc to
e90fe61
Compare
e90fe61 to
692e8ae
Compare
692e8ae to
d027acd
Compare
d027acd to
1a83c7b
Compare
1a83c7b to
e43c724
Compare
e43c724 to
8603d52
Compare
8603d52 to
87c22a2
Compare
87c22a2 to
0584729
Compare
0584729 to
ecd55eb
Compare
ecd55eb to
618a850
Compare
618a850 to
3f417ed
Compare
3f417ed to
f17804c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.52.3->0.58.5Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.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 declarationConfiguration
📅 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.