From cc4647e3b4c19d044e425cbd49ccf465401b3fc6 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 1 Jun 2020 21:51:42 +0300 Subject: [PATCH] Add check on type annotation for Bool --- xcode/.swiftlint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 4bbc84c..6c66505 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -239,6 +239,12 @@ custom_rules: message: "Use сontentView instead of self for addSubview or addSubviews methods in cell." severity: error + redundant_type_annotation_bool: + name: "Redundant type annotation for Bool" + regex: '((: *Bool *= *)|(BehaviourRelay *= *\S*\s*))((true)|(false))' + message: "Using a type annotation for Bool is redundant" + severity: error + # Rx unused_map_parameter: