-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update dependency nicklockwood/SwiftFormat to v0.55.5 #28
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 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
a5e90f5
to
395598b
Compare
395598b
to
e01e1ee
Compare
e01e1ee
to
ab535b3
Compare
ab535b3
to
7347e87
Compare
7347e87
to
a94a861
Compare
a94a861
to
6457ac2
Compare
6457ac2
to
4e7c88e
Compare
4e7c88e
to
089de99
Compare
76ddf06
to
3d6ff54
Compare
3d6ff54
to
0f9adc9
Compare
0f9adc9
to
52313a2
Compare
52313a2
to
c38facb
Compare
c38facb
to
3c1620f
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.55.5
Release Notes
nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
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 formatv0.54.6
Compare Source
wrapMultilineStatementBraces
ruleparseDeclarations
where incorrect tokens could cause rules to time outorganizeDeclarations
would add extra blank lines if type had blank lines with spacespreferForLoop
rulev0.54.5
Compare Source
unusedArguments
rulepreferForLoop
failed ifforEach
containsguard ... else { return }
v0.54.4
Compare Source
return
was incorrectly removed insidecatch
statement withwhere
clauseopaqueGenericParameters
rule being incorrectly applied to functions with typedthrows
spaceAroundBrackets
behaving incorrectly inside a macro invocationunusedArguments
false positive inside multiline string literalreturn
resulted in non-compiling code for opaque return typesVoid
return type is now removed from functions in protocol declarationsunusedArguments
didn't handle conditional assignment shadowing correctlyv0.54.3
Compare Source
--wrapeffects never
could unexpectedly remove unrelated code--condassignment
option (setting this previously had no effect)redundantReturn
rule no longer removes conditionalreturn
s ifconditionalAssignment
is disabledredundantObjc
rule now strips implicit@objc
attribute for@IBSegueAction
functionsv0.54.2
Compare Source
blankLinesBetweenChainedFunctions
rule now removes blank line after comments in the chainblankLinesBetweenChainedFunctions
rule no longer conflicts withblankLinesAroundMark
redundantInternal
removing requiredinternal
keyword in extensions withwhere
clausereturn
removal in conditional blocksredundantNilInit
rule insertingnil
afteras
keywordv0.54.1
Compare Source
--nilInit insert
option is no longer applied to lazy or attributed propertiesblankLinesBetweenChainedFunctions
rule now correctly handles comments in the chain--fragment
modereturn
in conditional blocks--lint
mode reporter output when usingstdin
v0.54.0
Compare Source
blankLineAfterSwitchCase
rule for inserting blank lines after switch casesconsistentSwitchCaseSpacing
rule for ensuring consistent spacing between switch casesredundantProperty
rule for removing variable assignments where value is immediately returnedredundantTypedThrows
rule for stripping redundantNever
orany Error
throws
types--report
without--reporter
type now raises an error if type can't be inferred--reporter xml
option)--typedelimiter
option for controlling spacing around the colon in type definitions--initcodernil
option for returningnil
instead of asserting in unavailableinit?(coder:)
fileHeader
rule now uses git info forcreated
date (if available) instead of file systemauthor
,author.name
andauthor.email
tokens for file header templates--callsiteparen
option for controlling closing paren placement at function call siteswrapAttributes
rule can now be applied differently to computed properties vs stored propertieswrapAttributes
rule can now be applied differently to complex (parameterized) vs simple attributes--varattributes
with--storedvarattrs
,--computedvarattrs
and--complexattrs
options—-nilinit
option for controlling whetherredundantNilInit
adds or removes explicitnil
--organizationmode type
)organizeDeclarations
for structs causedsortDeclarations
to have no effectopaqueGenericParameters rule
init
and_modify
property accessorspreferForLoop
rule and tuple argument matchingconditionalAssignment
rule to handle more cases--condassignment after-property
optionself
within macrosos_log
to--selfrequired
defaultsv0.53.10
Compare Source
stdout
directory when using--output stdout
unusedArguments
false positive for multiline function call arguments~
operator--report
or--reporter
argumentsstrongifiedSelf
removing required backticks around nonisolatedself
default
value for--reporter
(introduced in 0.53.9)sending
keywordv0.53.9
Compare Source
unusedArguments
when shadowing function argument with conditional assignment declaration--lint
errors are no longer shown in--quiet
mode (restores pre-0.53.8 behavior)v0.53.8
Compare Source
--strict
option to emit non-zero exit code after applying changes in formatting modeenumNamespaces
rule is no longer applied to structs with macros that have generic argumentsopaqueGenericParameters
rule is no longer applied to structs with macros or attributesredundantParens
spuriously removed parens inside a closureredundantInit
mishandled a.init
after a ternary operatorv0.53.7
Compare Source
redundantParens
where first parens inside a closure were spuriously removedwrapEnumCases
rule mangling unindented caseswrapEnumCases
rule no longer wraps cases inside inline enum declarationsredundantInit
metatype heuristic to reduce false positivesv0.53.6
Compare Source
.
operator inside attribute argumentsredundantType
rule no longer strips required explicit type from@Model
class default valuesredundantInit
didn't work on collection typesredundantParens
rule now correctly handles@MainActor
closureseach X
parameter pack expressions--wrapreturntype if-multiline
didn't work with arrays, dictionaries, tuples, or generic typesspaceAroundParens/Brackets
rules now correctly insert a space afterborrowing
/consuming
andisolated
import
statements--doccomments preserve
option to preserve all doc comments, even if not followed by a declarationv0.53.5
Compare Source
nonisolated(unsafe)
modifierstry
orasync
after a string literal expression--lenient
modestatic
/class
modifiersv0.53.4
Compare Source
enumNamespaces
rule is no longer applied to structs with attributes or macrosnonisolated(unsafe)
modifier is now handled correctlydo throws(Type) { ... }
clausesv0.53.3
Compare Source
preferForLoop
rule now correctly singularizes loop conditions that end with "cases"preferForLoop
mangled throwing or asyncforEach
expressionsorganizeDeclarations
was enabled but excluded declaration type@unknown default
casesenumNamespaces
rulethrows
v0.53.2
Compare Source
hoistAwait
rule could moveawait
beforetry
keywordredundantSelf
rule was confused by@MainActor
annotationunusedArguments
removed required argument insideguard
v0.53.1
Compare Source
stdout
directory when using--output stdout
unusedArguments
false positive for multiline function call arguments~
operator--report
or--reporter
argumentsstrongifiedSelf
removing required backticks around nonisolatedself
default
value for--reporter
(introduced in 0.53.9)sending
keywordv0.53.0
Compare Source
preferForLoop
rule to convertforEach { ... }
calls to regularfor
loopswrapLoopBodies
rule to wrap single-line loop bodies over multiple linesnoExplicitOwnership
rule to remove unwantedborrowing
andconsuming
modifierswrapMultilineConditionalAssignment
rule to wrapif
orswitch
expressions to new linewrapAttributes
rule no longer unwraps attributes if they would exceed--maxwidth
typeSugar
rule's--shortoptionals
option now defaults toexcept-properties
blankLinesBetweenChainedFunctions
rule by defaultblankLineAfterImports
rule by defaultself
being incorrectly inserted beforeset
clause in computed propertiesparseType()
helper function where qualified types were not recognizedv0.52.11
Compare Source
if
/switch
expression workaround for Swift 5.9 bug to handleas!
castsredundantSelf
rulev0.52.10
Compare Source
enumNamespaces
rule breakingimport struct
/class
statementsconditionalAssignment
rule toswitch
statements containing#if
blocksv0.52.9
Compare Source
redundantClosure
removing required closure around conditional statementsredundantClosure
removing closure containing conditional expressions inside a method callredundantClosure
generating invalid code when theredundantReturn
rule is disabledas?
cast would break build in Swift 5.9blankLineAfterImports
introducing spurious blank line before@preconcurrency
attributeenumNamespaces
rule wouldn't be applied immediately after animport
statementswitch
case with multiplewhere
clauses could be parsed incorrectlyv0.52.8
Compare Source
redundantClosure
rule in cases where anif
/switch
expression is not permitteddocComments
rule now correctly handles macro commentsdocComments
rule is now only applied to a comment block if all lines match the patternv0.52.7
Compare Source
conditionalAssignment
andredundantClosure
rules would be applied incorrectlyredundantClosure
rule leaving straytry
orawait
keywords behindv0.52.6
Compare Source
redundantReturn
rule was incorrectly applied to consecutiveif
statements in Swift 5.9v0.52.5
Compare Source
redundantReturn
rule could break fallible initializers in Swift 5.9docComments
rule inside#if
statementsdocComments
rule no longer treats comments starting withNote:
as a special directive#if
statements immediately preceded by a commentbraces
rule when no--maxwidth
is specified--asynccapturing
listv0.52.4
Compare Source
docComments
rule incorrectly replacing comments inside switch cases and if/guard conditionsredundantLet
rule removing requiredlet
insideViewBuilder
modifiersredundantLet
rule removing requiredlet
after@MainActor
or@Sendable
--wrapconditions after-first
if first line of condition is a commentsortTypealiases
rule 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.