Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.6.1")),
.package(url: "https://github.com/swiftlang/swift-syntax.git", exact: "602.0.0-prerelease-2025-08-11"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", exact: "603.0.0-prerelease-2025-09-15"),
.package(url: "https://github.com/jpsim/SourceKitten.git", .upToNextMajor(from: "0.37.2")),
.package(url: "https://github.com/jpsim/Yams.git", .upToNextMajor(from: "6.0.2")),
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", .upToNextMajor(from: "0.9.0")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ struct AttributeNameSpacingRule: Rule {
(a: Int, b: Int) in
}
"""),
Example("""
let closure1 = { @MainActor (a, b) in
}
"""),
],
triggeringExamples: [
Example("private ↓(set) var foo: Bool = false"),
Expand All @@ -47,13 +51,9 @@ struct AttributeNameSpacingRule: Rule {
Example("func funcWithEscapingClosure(_ x: @ ↓escaping () -> Int) {}"),
Example("func funcWithEscapingClosure(_ x: @escaping↓() -> Int) {}"),
Example("@available ↓(*, deprecated)"),
Example("@MyPropertyWrapper ↓(param: 2) "),
Example("@MyPropertyWrapper ↓(param: 2) let a = 1"),
Example("nonisolated ↓(unsafe) var _value: X?"),
Example("@MyProperty ↓() class Foo {}"),
Example("""
let closure1 = { @MainActor ↓(a, b) in
}
"""),
],
corrections: [
Example("private↓ (set) var foo: Bool = false"): Example("private(set) var foo: Bool = false"),
Expand All @@ -65,16 +65,9 @@ struct AttributeNameSpacingRule: Rule {
Example("func test(_ x: @↓ escaping () -> Int) {}"): Example("func test(_ x: @escaping () -> Int) {}"),
Example("func test(_ x: @escaping↓() -> Int) {}"): Example("func test(_ x: @escaping () -> Int) {}"),
Example("@available↓ (*, deprecated)"): Example("@available(*, deprecated)"),
Example("@MyPropertyWrapper↓ (param: 2) "): Example("@MyPropertyWrapper(param: 2) "),
Example("@MyPropertyWrapper↓ (param: 2) let a = 1"): Example("@MyPropertyWrapper(param: 2) let a = 1"),
Example("nonisolated↓ (unsafe) var _value: X?"): Example("nonisolated(unsafe) var _value: X?"),
Example("@MyProperty↓ ()"): Example("@MyProperty()"),
Example("""
let closure1 = { @MainActor↓ (a, b) in
}
"""): Example("""
let closure1 = { @MainActor(a, b) in
}
"""),
Example("@MyProperty↓ () let a = 1"): Example("@MyProperty() let a = 1"),
]
)
}
Expand Down
6 changes: 3 additions & 3 deletions bazel/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def swiftlint_repos(bzlmod = False):

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

http_archive(
Expand Down