[Update] regexp
This commit is contained in:
@@ -235,7 +235,7 @@ custom_rules:
|
||||
|
||||
addSubview_cell:
|
||||
name: "AddSubview cell"
|
||||
regex: '\s*class\s*\w+Cell:.*|\s*((self\.)|\s)addSubviews?\('
|
||||
regex: '\s*class\s*\w+Cell:[\s\S]*func [\s\S]+(self\.|\s)add(Subv|V)iew(s)?\('
|
||||
message: "Using addSubview or addSubviews incorrect"
|
||||
severity: error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user