Merge pull request #226 from TouchInstinct/feature/check_disposable

Add disposable_nil rule
This commit is contained in:
Loupehope 2020-09-15 12:16:23 +03:00 committed by GitHub
commit 7a590fd046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,12 @@ custom_rules:
message: "Replace Rx.map operator with replace(with:) or asVoid(). For Sequence.map consider using forEach."
severity: warning
disposable_nil:
name: "Disposable nil"
regex: ' *\S*(d|D)isposable\?? *= *nil'
message: "nil assigning doesn't dispose subscription. Call `dispose()` instead."
severity: error
# LeadKit
multiple_add_subview: