[Update] regexp

This commit is contained in:
Vlad 2020-05-21 11:11:41 +03:00
parent d8fd6d4262
commit b99d405e87
1 changed files with 1 additions and 1 deletions

View File

@ -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