Add strong self rule

This commit is contained in:
Vlad 2020-12-30 14:20:10 +03:00
parent 687197d06d
commit db8cd599b3
1 changed files with 6 additions and 0 deletions

View File

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