Files
SwiftLint/Source/SwiftLintCore/Models/HashableConfigurationRuleWrapperWrapper.swift
T

16 lines
579 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).description.identifier
== type(of: rhs.configurationRuleWrapper.rule).description.identifier
}
func hash(into hasher: inout Hasher) {
hasher.combine(type(of: configurationRuleWrapper.rule).description.identifier)
}
}