mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
15b285527a
* 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`
17 lines
745 B
Swift
17 lines
745 B
Swift
import SwiftLintFramework
|
|
|
|
public extension RuleDescription {
|
|
func with(nonTriggeringExamples: [Example]? = nil,
|
|
triggeringExamples: [Example]? = nil,
|
|
corrections: [Example: Example]? = nil) -> RuleDescription {
|
|
RuleDescription(identifier: identifier,
|
|
name: name,
|
|
description: description,
|
|
kind: kind,
|
|
nonTriggeringExamples: nonTriggeringExamples ?? self.nonTriggeringExamples,
|
|
triggeringExamples: triggeringExamples ?? self.triggeringExamples,
|
|
corrections: corrections ?? self.corrections,
|
|
deprecatedAliases: deprecatedAliases)
|
|
}
|
|
}
|