Skip to content
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

chore(deps): update dependency apple/swift-format to v509 #21

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 15, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
apple/swift-format major from: "508.0.1" -> from: "509.0.0"

Release Notes

apple/swift-format (apple/swift-format)

v509.0.0

Compare Source

This release is compatible with Swift 5.9.

Significant changes since the last release:

New rules
  • AlwaysUseLiteralForEmptyCollectionInit: transforms no-argument initializer calls on collection types to use the empty collection literal instead. For example, let x = [Int]() will be transformed into let x: [Int] = []. This rule is opt-in (disabled by default).
  • NoPlaygroundLiterals: emits lint findings when the playground literals (#colorLiteral, #fileLiteral, #imageLiteral) are used in code. Enabled by default.
  • OmitExplicitReturns: removes unnecessary return keywords from single-expression function/closure/subscript/accessor bodies. This rule is opt-in (disabled by default).
  • ReplaceForEachWithForLoop: emits lint findings when the forEach method is called with a closure literal at the end of a member access chain, indicating that it should be replaced by a for loop instead. Enabled by default.
  • TypeNamesShouldBeCapitalized: emits lint findings when a type is declared with a name that is not UpperCamelCase. Enabled by default.
New configuration settings
  • multiElementCollectionTrailingCommas (boolean): When set to false, the last element of a multi-element array or dictionary literal will not have a trailing comma, even when the literal wraps across multiple lines. Defaults to true (preserving the behavior of previous releases).
Bug fixes and behavior changes
  • swift-format no longer crashes when formatting a case block that contains no statements.
  • In multi-statement closures, there is now always a line break between the in keyword and the first statement.
  • Attributes before import statements are no longer wrapped.
  • The NoParensAroundConditions rule no longer removes parentheses around an immediately called closure.
  • The NoAssignmentInExpressions rule can be configured to ignore assignments that occur inside certain function calls. The default configuration ignores assignments inside XCTAssertNoThrow.
  • When an editor placeholder is found in the source, this is now treated as a warning instead of an error. This allows formatting to continue, treating the placeholder as a regular identifier.
  • Keypath literals are properly wrapped and indented.
  • Postfix-#if expressions are no longer indented too far when they follow a closing parenthesis.
  • Indentation of multiline strings has been fixed in a number of locations.
  • Documentation comment parsing has improved for rules like BeginDocumentationCommentWithOneLineSummary, UseTripleSlashForDocumentationComments, and ValidateDocumentationComments.
  • Diagnostic messages throughout swift-format have been cleaned up and improved.
  • The UseShorthandTypeNames rule properly parenthesizes optional some/any types; for example, Optional<any P> becomes (any P)?, not any P? (which is invalid).
  • The UseSynthesizedInitializer rule no longer warns that an initializer is redundant if it is declared with any attributes.
  • The lint/format plugins for SPM now default to processing all targets if the --target argument is not specified.
  • swift-format now emits a warning if you configure a rule that does not exist. This is meant to help catch typos in the configuration file.
  • swift-format now does nothing if its input is empty (i.e., a zero-byte file). This suppresses a single trailing newline that would have otherwise been added in this case.
API changes

For developers using swift-format as a library, the types in the SwiftFormatConfiguration module have been folded into the SwiftFormat module. The SwiftFormat module is now the sole module you should import to use the linter/formatter APIs.

The SwiftFormatConfiguration module still exists to re-export the types for backwards compatibility, but this will be removed in the 510.0.0 release.


Configuration

📅 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@nicklasl nicklasl merged commit 5f12304 into main Oct 12, 2023
@renovate renovate bot deleted the renovate/apple-swift-format-509.x branch October 12, 2023 17:25
fabriziodemaria pushed a commit that referenced this pull request Feb 2, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](0.0.2...0.1.0)
(2024-02-02)


### ⚠ BREAKING CHANGES

* Add EventHandler + Combine
([#29](#29))

### 🐛 Bug Fixes

* setProviderAndWait does not hang on ProviderError
([#35](#35))
([5661080](5661080))


### ✨ New Features

* Add ProviderNotReady event
([#36](#36))
([389f117](389f117))
* Add setProviderAndWait
([#30](#30))
([3ce6b8d](3ce6b8d))


### 🧹 Chore

* **deps:** update actions/checkout action to v4
([#18](#18))
([eb0cd56](eb0cd56))
* **deps:** update dependency apple/swift-format to v509
([#21](#21))
([5f12304](5f12304))
* Smaller cleanup in tests
([#33](#33))
([053dabc](053dabc))


### 📚 Documentation

* add sections for logging, named providers, and shutdown
([#31](#31))
([dc5876c](dc5876c))
* Fix Installation documentation
([#27](#27))
([5ddf45d](5ddf45d)),
closes [#25](#25)
* Update README to latest template
([#28](#28))
([dbdd502](dbdd502))
* Update README.md
([#19](#19))
([ec599ff](ec599ff))


### 🔄 Refactoring

* Add EventHandler + Combine
([#29](#29))
([dd122f7](dd122f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant