mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Disabled force_unwrapping, trailing comma, line_length rules
Summary: References #894 Disabled force unwrapping, but force try and force cast rules are still in effect: ```swift let k = object.things! // no longer causes a warning let r = object.fidget as! Spinnable // causes warning let s = try! object.doDangerousTask() // causes warning ``` Closes https://github.com/Instagram/IGListKit/pull/897 Differential Revision: D5651127 Pulled By: rnystrom fbshipit-source-id: 7174cc52d24de3c2cdc15a29c7b053b12d68b1e3
This commit is contained in:
parent
79b8290a1e
commit
7b56f64794
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
opt_in_rules: # some rules are only opt-in
|
||||
- empty_count
|
||||
disabled_rules:
|
||||
- force_unwrapping
|
||||
- comma
|
||||
- line_length
|
||||
included:
|
||||
- IGListKitExamples
|
||||
- IGListKitMessageExample
|
||||
|
|
@ -9,7 +13,6 @@ excluded:
|
|||
force_cast: warning
|
||||
force_try: warning
|
||||
weak_delegate: error
|
||||
line_length: 140
|
||||
type_body_length:
|
||||
warning: 300
|
||||
error: 400
|
||||
|
|
|
|||
Loading…
Reference in a new issue