Skip to content

Commit 7466bd6

Browse files
committed
Use SwiftSyntax 6.3 pre-release 2025-09-15
1 parent dc98988 commit 7466bd6

File tree

4 files changed

+13
-20
lines changed

4 files changed

+13
-20
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let package = Package(
2525
],
2626
dependencies: [
2727
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.6.1")),
28-
.package(url: "https://github.com/swiftlang/swift-syntax.git", exact: "602.0.0-prerelease-2025-08-11"),
28+
.package(url: "https://github.com/swiftlang/swift-syntax.git", exact: "603.0.0-prerelease-2025-09-15"),
2929
.package(url: "https://github.com/jpsim/SourceKitten.git", .upToNextMajor(from: "0.37.2")),
3030
.package(url: "https://github.com/jpsim/Yams.git", .upToNextMajor(from: "6.0.2")),
3131
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", .upToNextMajor(from: "0.9.0")),

Source/SwiftLintBuiltInRules/Rules/Style/AttributeNameSpacingRule.swift

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ struct AttributeNameSpacingRule: Rule {
3737
(a: Int, b: Int) in
3838
}
3939
"""),
40+
Example("""
41+
let closure1 = { @MainActor (a, b) in
42+
}
43+
"""),
4044
],
4145
triggeringExamples: [
4246
Example("private ↓(set) var foo: Bool = false"),
@@ -47,13 +51,9 @@ struct AttributeNameSpacingRule: Rule {
4751
Example("func funcWithEscapingClosure(_ x: @ ↓escaping () -> Int) {}"),
4852
Example("func funcWithEscapingClosure(_ x: @escaping↓() -> Int) {}"),
4953
Example("@available ↓(*, deprecated)"),
50-
Example("@MyPropertyWrapper ↓(param: 2) "),
54+
Example("@MyPropertyWrapper ↓(param: 2) let a = 1"),
5155
Example("nonisolated ↓(unsafe) var _value: X?"),
5256
Example("@MyProperty ↓() class Foo {}"),
53-
Example("""
54-
let closure1 = { @MainActor ↓(a, b) in
55-
}
56-
"""),
5757
],
5858
corrections: [
5959
Example("private↓ (set) var foo: Bool = false"): Example("private(set) var foo: Bool = false"),
@@ -65,16 +65,9 @@ struct AttributeNameSpacingRule: Rule {
6565
Example("func test(_ x: @↓ escaping () -> Int) {}"): Example("func test(_ x: @escaping () -> Int) {}"),
6666
Example("func test(_ x: @escaping↓() -> Int) {}"): Example("func test(_ x: @escaping () -> Int) {}"),
6767
Example("@available↓ (*, deprecated)"): Example("@available(*, deprecated)"),
68-
Example("@MyPropertyWrapper↓ (param: 2) "): Example("@MyPropertyWrapper(param: 2) "),
68+
Example("@MyPropertyWrapper↓ (param: 2) let a = 1"): Example("@MyPropertyWrapper(param: 2) let a = 1"),
6969
Example("nonisolated↓ (unsafe) var _value: X?"): Example("nonisolated(unsafe) var _value: X?"),
70-
Example("@MyProperty↓ ()"): Example("@MyProperty()"),
71-
Example("""
72-
let closure1 = { @MainActor↓ (a, b) in
73-
}
74-
"""): Example("""
75-
let closure1 = { @MainActor(a, b) in
76-
}
77-
"""),
70+
Example("@MyProperty↓ () let a = 1"): Example("@MyProperty() let a = 1"),
7871
]
7972
)
8073
}

bazel/repos.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def swiftlint_repos(bzlmod = False):
3535

3636
http_archive(
3737
name = "SwiftSyntax",
38-
sha256 = "4097eeba84b24fbb05d56353683a0aac57ee94d36d65863a2733744e9dc44323",
39-
strip_prefix = "swift-syntax-602.0.0-prerelease-2025-08-11",
40-
url = "https://github.com/swiftlang/swift-syntax/archive/refs/tags/602.0.0-prerelease-2025-08-11.tar.gz",
38+
sha256 = "e01c03ce9fba5b6a909b446e45e349b96ddad66655e487054cbb27a31d7ec01d",
39+
strip_prefix = "swift-syntax-603.0.0-prerelease-2025-09-15",
40+
url = "https://github.com/swiftlang/swift-syntax/archive/refs/tags/603.0.0-prerelease-2025-09-15.tar.gz",
4141
)
4242

4343
http_archive(

0 commit comments

Comments
 (0)