Compare commits

...

2 Commits

Author SHA1 Message Date
Vlad a9382c5329 Merge branch 'master' into feature/strong_self
# Conflicts:
#	xcode/.swiftlint.yml
2020-09-18 13:21:13 +03:00
Vlad a264c319c2 Add strong self rule 2020-09-18 13:19:47 +03:00
1 changed files with 6 additions and 0 deletions

View File

@ -257,6 +257,12 @@ custom_rules:
message: "Use `ParameterClosure` instead of declaring an explicit return value of `Void`."
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: