Update rule

This commit is contained in:
Vlad 2020-06-01 22:42:37 +03:00
parent 05fd54ed8d
commit 7979e8088b
1 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,12 @@ custom_rules:
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>\(\s*value\s*:)) *((true)|(false))'
message: "Using a type annotation for Bool is redundant"
severity: error
# Rx
unused_map_parameter: