Mark `RulesFilter` as `final class` (#4939)
Since it's not designed to be subclassed.
This commit is contained in:
parent
603fff9a82
commit
b2a4c9fcb9
|
@ -1,6 +1,6 @@
|
|||
import SwiftLintFramework
|
||||
|
||||
extension RulesFilter {
|
||||
final class RulesFilter {
|
||||
struct ExcludingOptions: OptionSet {
|
||||
let rawValue: Int
|
||||
|
||||
|
@ -8,9 +8,7 @@ extension RulesFilter {
|
|||
static let disabled = Self(rawValue: 1 << 1)
|
||||
static let uncorrectable = Self(rawValue: 1 << 2)
|
||||
}
|
||||
}
|
||||
|
||||
class RulesFilter {
|
||||
private let allRules: RuleList
|
||||
private let enabledRules: [Rule]
|
||||
|
||||
|
|
Loading…
Reference in New Issue