Update rule
This commit is contained in:
parent
74b5c1da91
commit
d6589c53a3
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue