Add strong self rule
This commit is contained in:
parent
687197d06d
commit
db8cd599b3
|
|
@ -278,6 +278,12 @@ custom_rules:
|
|||
message: "Use `ParameterClosure` instead of declaring an explicit return value of `Void`."
|
||||
severity: error
|
||||
|
||||
strong_self:
|
||||
name: "Strong self"
|
||||
regex: '(if|guard)\s+let\s+self\s+=\s+self'
|
||||
message: "Use a local function instead of capture strong self"
|
||||
severity: error
|
||||
|
||||
# Rx
|
||||
|
||||
unused_map_parameter:
|
||||
|
|
|
|||
Loading…
Reference in New Issue