[Update] regexp
This commit is contained in:
parent
6986100357
commit
d8fd6d4262
|
|
@ -235,7 +235,7 @@ custom_rules:
|
||||||
|
|
||||||
addSubview_cell:
|
addSubview_cell:
|
||||||
name: "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"
|
message: "Using addSubview or addSubviews incorrect"
|
||||||
severity: error
|
severity: error
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue