Merge pull request #194 from TouchInstinct/feature/lint_bool

Redundant type annotation for Bool
This commit is contained in:
Loupehope 2020-06-02 13:30:54 +03:00 committed by GitHub
commit c74fc8fa27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -239,6 +239,12 @@ custom_rules:
message: "Use сontentView instead of self for addSubview or addSubviews methods in cell."
severity: error
redundant_type_annotation_bool:
name: "Redundant type annotation for Bool"
regex: '((var|let)) *\w+ *((: *Bool *=)|((\w| |<|>|:)*= *BehaviorRelay<Bool>\( *value *:)) *((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error
# Rx
unused_map_parameter: