Skip to content

Commit 5cb2cc1

Browse files
committed
fix linter issues
1 parent e36f2f5 commit 5cb2cc1

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.swiftlint.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ custom_rules:
8686
message: "Every MARK should be surrounded with 1 newline before and 1 after it"
8787
severity: warning
8888

89-
redundant_default_type:
90-
included: ".*.swift"
91-
name: "Redundant explicit type"
92-
regex: "(var|let) [0-9a-zA-Z_]*: (Int|String|Double|Bool)[ ]*= "
93-
message: "Redundant explicit declaration of default types should be avoided"
94-
9589
class_modificators_order:
9690
include: ".*.swift"
9791
name: "Class modificators order"

Components/Macro/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ let package = Package(
1717
.executable(
1818
name: "MacroClient",
1919
targets: ["MacroClient"]
20-
),
20+
)
2121
],
2222
dependencies: [
2323
// Depend on the latest Swift 5.9 prerelease of SwiftSyntax
24-
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b"),
24+
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b")
2525
],
2626
targets: [
2727
// Targets are the basic building blocks of a package, defining a module or a test suite.
@@ -50,8 +50,8 @@ let package = Package(
5050
name: "MacroTests",
5151
dependencies: [
5252
"Macro",
53-
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
53+
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
5454
]
55-
),
55+
)
5656
]
5757
)

Components/Macro/Sources/Macros/MutableMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public struct MutableMacro: MemberMacro {
4949
@main
5050
struct MacroPlugin: CompilerPlugin {
5151
let providingMacros: [Macro.Type] = [
52-
MutableMacro.self,
52+
MutableMacro.self
5353
]
5454
}

Components/Macro/Tests/MutableMacroTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import XCTest
44
import Macros
55

66
let testMacros: [String: Macro.Type] = [
7-
"mutable": MutableMacro.self,
7+
"mutable": MutableMacro.self
88
]
99

1010
final class MutableMacroTests: XCTestCase {

0 commit comments

Comments
 (0)