Update rule

This commit is contained in:
Vlad 2020-06-01 21:58:35 +03:00
parent cc4647e3b4
commit 05fd54ed8d
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ custom_rules:
redundant_type_annotation_bool:
name: "Redundant type annotation for Bool"
regex: '((: *Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
regex: '((var|let)) *\w+ *: *((Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error