Add private outlet

This commit is contained in:
Igor 2017-08-23 18:44:51 +03:00
parent 6183721927
commit d6a479a45d
1 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,7 @@
disabled_rules:
- identifier_name
opt_in_rules:
- private_outlet
excluded:
- Carthage
- Pods
@ -59,12 +61,6 @@ custom_rules:
- comment
message: "Template header comments should be removed."
private_outlet:
name: "Outlet"
regex: '@IBOutlet(\sweak)?(\s(file)?private(\(set\))?)?\svar'
message: "Please use some of `private` modifiers and make property it weak. Use pattern: `IBOutlet private weak var`."
severity: error
delegate:
name: "Delegate"
regex: '(?<!weak\s)var\s\w*(D|d)elegate\w*:'