Merge pull request #272 from TouchInstinct/feature/lazy_var_lint

Update .swiftlint.yml
This commit is contained in:
Dmitriy 2021-08-12 11:02:05 +03:00 committed by GitHub
commit 501ff89f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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