From 7979e8088bfed6ef1ccffb6548a80d678567df5f Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 1 Jun 2020 22:42:37 +0300 Subject: [PATCH] Update rule --- xcode/.swiftlint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index b535f1e..bfd2f73 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -245,6 +245,12 @@ custom_rules: 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\(\s*value\s*:)) *((true)|(false))' + message: "Using a type annotation for Bool is redundant" + severity: error + # Rx unused_map_parameter: