From b99d405e87bbfb4e9bcab82c9169b5c80f30e7cf Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 21 May 2020 11:11:41 +0300 Subject: [PATCH] [Update] regexp --- xcode/.swiftlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 7d61f29..af688ba 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -235,7 +235,7 @@ custom_rules: addSubview_cell: name: "AddSubview cell" - regex: '\s*class\s*\w+Cell:[\s\S]*func [\s\S]+(self\.|\s)add(Subv|V)iew(s)?\(' + regex: '\s*class\s*\w+Cell:(?s).*(self\.|\s{2,})add(Subv|V)iews?\(' message: "Using addSubview or addSubviews incorrect" severity: error