Update rule

This commit is contained in:
Vlad 2020-06-01 23:00:46 +03:00
parent 1eedb71209
commit 0e5f9b67f6
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: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay<Bool>\( *value *:)) *((true)|(false))'
regex: '((var|let)) *\w+ *((: *Bool *=)|((\w| |<|>|:)*= *BehaviorRelay<Bool>\( *value *:)) *((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error