diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 4bbc84c..3fc2c03 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: '((var|let)) *\w+ *((: *Bool *=)|((\w| |<|>|:)*= *BehaviorRelay\( *value *:)) *((true)|(false))' + message: "Using a type annotation for Bool is redundant" + severity: error + # Rx unused_map_parameter: