Update rule

This commit is contained in:
Vlad 2020-06-01 22:46:05 +03:00
parent 74b5c1da91
commit d6589c53a3
1 changed files with 0 additions and 6 deletions

View File

@ -240,12 +240,6 @@ custom_rules:
severity: error
redundant_type_annotation_bool:
name: "Redundant type annotation for Bool"
regex: '((var|let)) *\w+ *: *((Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error
redundant_type_annotation_string:
name: "Redundant type annotation for Bool"
regex: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay<Bool>\(\ *value\ *:)) *((true)|(false))'
message: "Using a type annotation for Bool is redundant"