From 74b5c1da9115c6dd760e8c210e49c61112aacd31 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 1 Jun 2020 22:43:26 +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 bfd2f73..bab5181 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -247,7 +247,7 @@ custom_rules: redundant_type_annotation_string: name: "Redundant type annotation for Bool" - regex: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay\(\s*value\s*:)) *((true)|(false))' + regex: '((var|let)) *\w+ *((: *Bool *=)|([^=]*= *BehaviourRelay\(\ *value\ *:)) *((true)|(false))' message: "Using a type annotation for Bool is redundant" severity: error