Update rule
This commit is contained in:
parent
cc4647e3b4
commit
05fd54ed8d
|
|
@ -241,7 +241,7 @@ custom_rules:
|
||||||
|
|
||||||
redundant_type_annotation_bool:
|
redundant_type_annotation_bool:
|
||||||
name: "Redundant type annotation for Bool"
|
name: "Redundant type annotation for Bool"
|
||||||
regex: '((: *Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
|
regex: '((var|let)) *\w+ *: *((Bool *= *)|(BehaviourRelay<Bool> *= *\S*\s*))((true)|(false))'
|
||||||
message: "Using a type annotation for Bool is redundant"
|
message: "Using a type annotation for Bool is redundant"
|
||||||
severity: error
|
severity: error
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue