Merge pull request #83 from TouchInstinct/fix/remove_trailing_closure_rule

remove trailing_closure rule
This commit is contained in:
Ivan Smolin 2018-12-27 18:10:19 +03:00 committed by GitHub
commit f80cc38c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,6 @@ opt_in_rules:
- conditional_returns_on_newline
- closure_spacing
- closure_end_indentation
- trailing_closure
# lint
@ -163,7 +162,7 @@ custom_rules:
name: "Too many empty spaces"
regex: '(?!\n)[^ \n]+ {2,}.+'
message: "Remove excess empty spaces"
severity: error
severity: warning
match_kinds:
- argument
- attribute.builtin
@ -191,7 +190,7 @@ custom_rules:
name: "Unused map parameter"
regex: '.map\s*\{\s*_\s*in'
message: "Replace Rx.map operator with replace(with:) or asVoid(). For Sequence.map consider using forEach."
severity: error
severity: warning
# LeadKit
@ -199,5 +198,5 @@ custom_rules:
name: "Multiple addSubview calls"
regex: '(^\s*\w*\.?)(addSubview)\([\w]+\)\n\1\2'
message: "Replace multiple addSubview calls with single addSubviews."
severity: error
severity: warning