-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #12
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
f04875e
to
577f120
Compare
577f120
to
2898761
Compare
2898761
to
f4c0171
Compare
f4c0171
to
d4c248b
Compare
d4c248b
to
563bdaf
Compare
563bdaf
to
09c80df
Compare
09c80df
to
132782d
Compare
132782d
to
ff6d52d
Compare
ff6d52d
to
5d6cc97
Compare
5d6cc97
to
4ed33fd
Compare
4ed33fd
to
ec8d9bf
Compare
ec8d9bf
to
ccf43cf
Compare
ccf43cf
to
f5ad416
Compare
633e068
to
42e57ba
Compare
5d03cbf
to
004f458
Compare
004f458
to
e198852
Compare
e198852
to
e47d5cf
Compare
e47d5cf
to
d0172f9
Compare
d0172f9
to
4e27f64
Compare
4e27f64
to
786be24
Compare
786be24
to
34f76a7
Compare
34f76a7
to
2a4a11a
Compare
2a4a11a
to
0d6c2e2
Compare
0d6c2e2
to
66029b4
Compare
66029b4
to
36c72e7
Compare
36c72e7
to
f043133
Compare
f043133
to
9e52b81
Compare
9e52b81
to
df3a65c
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.51.7
->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 declarationv0.52.3
Compare Source
try
inside multiline string literal interpolationstry
inside generic type initializer callsreturn
statements added while debugging would be incorrectly removedv0.52.2
Compare Source
Self
being incorrectly removed inlet
orif let
expressions// swiftformat:disable
directive not working forredundantReturn
rulev0.52.1
Compare Source
if
/switch
expression workaround for Swift 5.9 bug to handleas!
castsredundantSelf
rulev0.52.0
Compare Source
redundantInternal
rule to remove redundantinternal
access modifierssortTypealiases
rule to sorttypealias
types alphabeticallyheaderFileName
rule to ensure filename in header comment matches actual fileredundantStaticSelf
rule to remove redundantself
inside static functionsblankLinesBetweenChainedFunctions
rule to remove blank lines inside function chainsapplicationMain
rule to remove obsolete@UIApplicationMain
and@NSApplicationMain
attributessortedSwitchCases
rule tosortSwitchCases
for consistencysortedImports
rule tosortImports
for consistencyreturn
is now correctly removed in switch cases with associated valuesredundantSelf
ruleelse
statement is now preservedv0.51.15
Compare Source
unusedArguments
rule that caused used parameters to be marked unused/
operatorv0.51.14
Compare Source
v0.51.13
Compare Source
redundantSelf
rule to be silently disabledunusedArguments
would remove an argument that was used after anif
$
identifierpackage
keyword inorganizeDeclarations
rulev0.51.12
Compare Source
hoistTry
bugs with generics, subscripts and collection literalstry?
andtry
try
inside an optional functionin
was mistaken for part of afor
looppackage
access modifierconsume
anddiscard
operatorsborrowing
andconsuming
modifiersv0.51.11
Compare Source
redundantSelf
rulehoistTry
rule failed with more than 10try
expressions at the same scope levelTODO:
directives are no longer converted by thedocComments
rulev0.51.10
Compare Source
wrapAttributes
rule due toclass
declaration being mistaken for class-scoped var#ifdef
blocksortedSwitchCases
v0.51.9
Compare Source
typeSugar
rule unwrapping Optionalsome/any
without inserting required parentheses#ifdef
block after a closing bracev0.51.8
Compare Source
redundantSelf
removing non-unwrapped weakself
inside closuresfileprivate
rule makinginit
private when inherited by subclass in the same filehoistPatternLet
rule insertinglet
inside dictionary type literalunusedArguments
incorrectly removing used argument after conditional compilation blockunusedArguments
rule error handlingConfiguration
📅 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.