From 05fd54ed8db80ded84fcd56f2a91ed2d79318064 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 1 Jun 2020 21:58:35 +0300 Subject: [PATCH] Update rule --- xcode/.swiftlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 6c66505..b535f1e 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -241,7 +241,7 @@ custom_rules: redundant_type_annotation_bool: name: "Redundant type annotation for Bool" - regex: '((: *Bool *= *)|(BehaviourRelay *= *\S*\s*))((true)|(false))' + regex: '((var|let)) *\w+ *: *((Bool *= *)|(BehaviourRelay *= *\S*\s*))((true)|(false))' message: "Using a type annotation for Bool is redundant" severity: error