Add check on type annotation for Bool

This commit is contained in:
Vlad 2020-06-01 21:51:42 +03:00
parent 73f21b9cc4
commit cc4647e3b4
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." message: "Use сontentView instead of self for addSubview or addSubviews methods in cell."
severity: error severity: error
redundant_type_annotation_bool:
name: "Redundant type annotation for Bool"
regex: '((: *Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error
# Rx # Rx
unused_map_parameter: unused_map_parameter: