diff --git a/.swiftlint.yml b/.swiftlint.yml index c3c3e366..2f846ff8 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -86,12 +86,6 @@ custom_rules: message: "Every MARK should be surrounded with 1 newline before and 1 after it" severity: warning - redundant_default_type: - included: ".*.swift" - name: "Redundant explicit type" - regex: "(var|let) [0-9a-zA-Z_]*: (Int|String|Double|Bool)[ ]*= " - message: "Redundant explicit declaration of default types should be avoided" - class_modificators_order: include: ".*.swift" name: "Class modificators order" diff --git a/Components/Macro/Package.swift b/Components/Macro/Package.swift index 817f9fa0..f980e6d1 100644 --- a/Components/Macro/Package.swift +++ b/Components/Macro/Package.swift @@ -17,11 +17,11 @@ let package = Package( .executable( name: "MacroClient", targets: ["MacroClient"] - ), + ) ], dependencies: [ // Depend on the latest Swift 5.9 prerelease of SwiftSyntax - .package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b"), + .package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. @@ -50,8 +50,8 @@ let package = Package( name: "MacroTests", dependencies: [ "Macro", - .product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"), + .product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax") ] - ), + ) ] ) diff --git a/Components/Macro/Sources/Macros/MutableMacro.swift b/Components/Macro/Sources/Macros/MutableMacro.swift index 57993021..6c3013de 100644 --- a/Components/Macro/Sources/Macros/MutableMacro.swift +++ b/Components/Macro/Sources/Macros/MutableMacro.swift @@ -49,6 +49,6 @@ public struct MutableMacro: MemberMacro { @main struct MacroPlugin: CompilerPlugin { let providingMacros: [Macro.Type] = [ - MutableMacro.self, + MutableMacro.self ] } diff --git a/Components/Macro/Tests/MutableMacroTests.swift b/Components/Macro/Tests/MutableMacroTests.swift index a3a63ad2..30e1f719 100644 --- a/Components/Macro/Tests/MutableMacroTests.swift +++ b/Components/Macro/Tests/MutableMacroTests.swift @@ -4,7 +4,7 @@ import XCTest import Macros let testMacros: [String: Macro.Type] = [ - "mutable": MutableMacro.self, + "mutable": MutableMacro.self ] final class MutableMacroTests: XCTestCase {