mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
* Short names for test modules * Lint plugins and `Package.swift` in integration tests * Simplify and merge file groups in Bazel * Move common functions to `TestHelpers`
20 lines
558 B
Swift
20 lines
558 B
Swift
import SwiftLintCore
|
|
|
|
public struct RuleMock: Rule {
|
|
var configurationDescription: some Documentable { RuleConfigurationOption.noOptions }
|
|
|
|
public var configuration = SeverityConfiguration<Self>(.warning)
|
|
|
|
public static let description = RuleDescription(
|
|
identifier: "RuleMock",
|
|
name: "",
|
|
description: "",
|
|
kind: .style
|
|
)
|
|
|
|
public init() { /* conformance for test */ }
|
|
public init(configuration _: Any) throws { self.init() }
|
|
|
|
public func validate(file _: SwiftLintFile) -> [StyleViolation] { [] }
|
|
}
|