mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Ideally, SwiftLintCore would some day only contain components that are needed to define rules. Consequently, it would be the only bundle required to import for (external) rule development.
16 lines
543 B
Swift
16 lines
543 B
Swift
internal struct HashableConfigurationRuleWrapperWrapper: Hashable {
|
|
let configurationRuleWrapper: ConfigurationRuleWrapper
|
|
|
|
static func == (
|
|
lhs: Self, rhs: Self
|
|
) -> Bool {
|
|
// Only use identifier for equality check (not taking config into account)
|
|
type(of: lhs.configurationRuleWrapper.rule).identifier
|
|
== type(of: rhs.configurationRuleWrapper.rule).identifier
|
|
}
|
|
|
|
func hash(into hasher: inout Hasher) {
|
|
hasher.combine(type(of: configurationRuleWrapper.rule).identifier)
|
|
}
|
|
}
|