diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index edc9048..a4c1c83 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -233,10 +233,10 @@ custom_rules: message: "Too complex expression for single line closure. Improve readability by making it multiline." severity: error - addSubview_cell: - name: "AddSubview cell" - regex: '(extension|class)\s*\w+Cell:(?s).*(self\.|\s{2,})add(Subv|V)iews?\(\w' - message: "Using addSubview or addSubviews incorrect" + addSubview_in_cell: + name: "Usage addSubview in cell" + regex: '(extension|class)\s*\w+Cell(:| )(?s).*(self\.|\s{2,})add(Subv|V)iews?\(\w' + message: "Use сontentView instead of self for addSubview or addSubviews methods." severity: error # Rx