diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 40a41b4..6861432 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -251,6 +251,12 @@ custom_rules: message: "The parameter name is actually used in the function name. Use _ instead." severity: error + strong_self: + name: "Strong self" + regex: 'guard[\s\S]*= *self[\s\S]*else' + message: "Use a local function with `weak self` instead of `strong self`." + severity: error + # Rx unused_map_parameter: