Mark `RulesFilter` as `final class` (#4939)

Since it's not designed to be subclassed.
This commit is contained in:
JP Simard 2023-04-26 12:26:22 -04:00 committed by GitHub
parent 603fff9a82
commit b2a4c9fcb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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]