Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NullIsOne committed Jun 19, 2023
1 parent da9fa77 commit 2251ecc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions Components/Macro/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -50,8 +50,8 @@ let package = Package(
name: "MacroTests",
dependencies: [
"Macro",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
]
),
)
]
)
2 changes: 1 addition & 1 deletion Components/Macro/Sources/Macros/MutableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public struct MutableMacro: MemberMacro {
@main
struct MacroPlugin: CompilerPlugin {
let providingMacros: [Macro.Type] = [
MutableMacro.self,
MutableMacro.self
]
}
2 changes: 1 addition & 1 deletion Components/Macro/Tests/MutableMacroTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import XCTest
import Macros

let testMacros: [String: Macro.Type] = [
"mutable": MutableMacro.self,
"mutable": MutableMacro.self
]

final class MutableMacroTests: XCTestCase {
Expand Down

0 comments on commit 2251ecc

Please sign in to comment.