Merge pull request #272 from TouchInstinct/feature/lazy_var_lint
Update .swiftlint.yml
This commit is contained in:
commit
501ff89f28
|
|
@ -264,6 +264,12 @@ custom_rules:
|
|||
regex: 'case[^\n\(]+\([^\)]*(let|var)\s'
|
||||
message: "Use a let|var keyword behind parentheses"
|
||||
severity: warning
|
||||
|
||||
lazy_var:
|
||||
name: "Lazy var access modifier"
|
||||
regex: '(?<!private\(set\)\s)lazy\s+var'
|
||||
message: "Lazy var can only be used with private(set) modifier."
|
||||
severity: warning
|
||||
|
||||
# Rx
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue