Update .swiftlint.yml

add final class rule for ConfigurableView and ConfigurableCell
This commit is contained in:
Dmitriy 2021-08-16 12:14:54 +03:00 committed by GitHub
parent 501ff89f28
commit 121258bb25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -270,6 +270,12 @@ custom_rules:
regex: '(?<!private\(set\)\s)lazy\s+var'
message: "Lazy var can only be used with private(set) modifier."
severity: warning
final_class_for_configurable:
name: "Final class for ConfigurableView and ConfigurableCell"
regex: '(?<!final\s)(class\s\w*:(\s\w*,)?\s(ConfigurableView|ConfigurableCell))'
message: "Use final class for ConfigurableView and ConfigurableCell"
severity: warning
# Rx