Releases
510.1.0
What's Changed
Update to non-optional leading/trailingTrivia swift-syntax API by @bnbarham in #497
Adjustments to split FunctionParameterSyntax
into multiple nodes for function parameters, closure parameters and enum parameters by @ahoppen in #495
Prepare 508.0.0 release. by @allevato in #506
Fix formatting of import with multiple attributes (fixes #445 ) and ensure that imports never wrap by @stackotter in #501
Fix fatal error caused by switch cases without any statements (#473 ) by @stackotter in #499
Remove the swift-tools-support-core
dependency from swift-format. by @allevato in #509
Fix pretty printing of multi-statement closures (issue #494 ) by @stackotter in #498
Avoid removing certain disambiguating parens from conditions (fixes #298 ) by @stackotter in #503
Fix more postfix pound if scenarios by @DavidBrunow in #402
Remove usages of functions that shouldnβt be part of SwiftSyntaxβs public API by @ahoppen in #504
Removed warnings by @CippoX in #510
Adjustment for SwiftSyntax rename members
-> memberBlock
by @ahoppen in #512
[SwiftSyntax] Remove force unwrapping for source location by @kimdv in #513
Change version dependency on swift-argument-parser
to from upToNextMinor
to upToNextMajor
by @ahoppen in #517
Replace deprecated code of swift-syntax with the latest code to remove warning by @TTOzzi in #531
Fix indentation of multiline strings when part of a larger expression. by @allevato in #532
Fix try
/await
expressions in NoAssignmentInExpressions
. by @allevato in #533
Further improve multiline string formatting. by @allevato in #534
Allow exceptions to NoAssignmentInExpressions
. by @allevato in #535
Add Token.break
after fixity in operator declaration by @StevenWong12 in #536
Rename elementList
in TupleExprSyntax
to elements
by @StevenWong12 in #537
Fix async throws
function types when they appear in an expression context. by @allevato in #539
Replace deprecated code from swift-syntax by @TTOzzi in #540
Wrap keypath literals appropriately. by @allevato in #545
Format macro
declarations. by @allevato in #546
Insert white space before trailing closure of a macro expression by @kimberninger in #544
Rename 'squareBracket' to 'square' by @TTOzzi in #541
Delete UnknownNodeTests
. by @allevato in #548
Fix formatting of @backDeploy
attribute. by @allevato in #550
Don't insert an extra break inside empty multiline strings. by @allevato in #551
Downgrade editor placeholder in source file
from error to warning. by @allevato in #547
Improve wrapping of if/switch expressions. by @allevato in #553
Fix postfix-#if
formatting when they come after a closing parenthesis. by @allevato in #554
Fix indentation of multiline strings in enum case raw values. by @allevato in #555
Fix deprecated SwiftSyntax api warnings by @kitasuke in #558
Remove the compiler condition guarding DerivativeRegistrationAttributeArgumentsSyntax
. by @allevato in #559
Use swift-markdown to parse documentation comments. by @allevato in #560
Adjustment because of a property rename in swift-syntax by @ahoppen in #561
Replace [TriviaPiece].Index
with Array<TriviaPiece>.Index
. by @allevato in #565
Remove --mode flag for configuration dump by @Gray-Wind in #566
Use newer equivalents of deprecated nodes names by @Matejkob in #567
Add XCTest exclusion comment for lint rules by @kitasuke in #568
Use methods on Sequence instead of SyntaxCollection by @kitasuke in #569
Update swift-format for renamed children in SwiftSyntax by @ahoppen in #562
Fix deprecated warnings regarding swift-syntax changes by @kitasuke in #570
Adjustments for node renames in swift-syntax by @ahoppen in #572
Remove initializer
from TupleTypeElementSyntax
initializer call by @ahoppen in #573
Rename children of differentiability nodes by @ahoppen in #574
Adjustments for refactoring of representation of Accessors in SwiftSyntax by @ahoppen in #576
Use where
instead of filter for for
loops by @ahoppen in #575
Adjustments for usage of DeclReferenceExprSyntax
as child of MemberAccessExprSyntax
by @ahoppen in #577
[Core] Add new finding severity kinds - refactoring
and convention
by @xedin in #578
Fix deprecation warnings from renamed nodes / types in SwiftSyntax by @ahoppen in #579
Move the default Configuration.init()
into a separate file. by @allevato in #580
Don't alter doc line comments unnecessarily. by @allevato in #581
Improve a bunch of diagnostic messages. by @allevato in #583
Migrate away from the latest deprecated APIs. by @allevato in #584
Replace the ReplaceTrivia
rewriter with direct trivia mutations. by @allevato in #588
Parenthesize some/any
types when converting Optional
to ?
. by @allevato in #589
Update for the fact that syntax collections are always non-optional in SwiftSyntax now by @ahoppen in #585
Make shebang
a child of SourceFileSyntax
by @StevenWong12 in #590
[Lint] Add a rule to detect that type declarations are not capitalized by @xedin in #587
Don't warn about a redundant synthesized memberwise init if it has attributes. by @allevato in #592
Collapse almost everything into a single SwiftFormat
module. by @allevato in #593
Refactor tests. by @allevato in #595
Don't do anything if the input is empty. by @allevato in #599
Fix a bunch of FIXMEs around linter findings. by @allevato in #597
[Lint/Format] Add a rule to omit return
from functions, closures, subscripts, and variables by @xedin in #596
[Lint] Add a rule to replace .forEach
with a for-in loop by @xedin in #603
Replace with
calls with in-place mutation; clean up helpers. by @allevato in #609
Actually implement NoPlaygroundLiterals
rule. by @allevato in #613
Adjust for "remark" diagnostic severity by @DougGregor in #605
Move Configuration
into the SwiftFormat
module. by @allevato in #614
Fix invalid links in README by @woxtu in #594
Default to all targets when plugin --target
parameter missing. Fix #483 by @BrianHenryIE in #608
Remove unnecessary casting by @Matejkob in #618
Output a warning for unknown configuration rules in .swift-format
by @natikgadzhi in #612
Generate rule docs automatically by @natikgadzhi in #615
[5.10] Add fixes that were present in 509.0.0 but not release/5.10 by @ahoppen in #704
New Contributors
You canβt perform that action at this time.