From 9b759003ff296f7c892a6bd64d62d00f262c3a33 Mon Sep 17 00:00:00 2001 From: Maxim Sorokin Date: Fri, 10 Apr 2020 13:45:26 +0300 Subject: [PATCH] added new swiftlint rules --- xcode/.swiftlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 799ada0..570d8ea 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -217,7 +217,7 @@ custom_rules: boolean_redundant_condition: name: "Redundant Boolean Condition" - regex: "(== true)|(== false)|(!= true)|(!= false)||(\\? true \\: false)|(\\? false \\: true)" + regex: "(== true)|(== false)|(!= true)|(!= false)|(\\? true \\: false)|(\\? false \\: true)" message: "Comparing a boolean to true is redundant (use `?? false` for optionals), and `!`-syntax is preferred over comparing to false." severity: error