Update rule
This commit is contained in:
parent
7979e8088b
commit
74b5c1da91
|
|
@ -247,7 +247,7 @@ custom_rules:
|
|||
|
||||
redundant_type_annotation_string:
|
||||
name: "Redundant type annotation for Bool"
|
||||
regex: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay<Bool>\(\s*value\s*:)) *((true)|(false))'
|
||||
regex: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay<Bool>\(\ *value\ *:)) *((true)|(false))'
|
||||
message: "Using a type annotation for Bool is redundant"
|
||||
severity: error
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue