|
21 | 21 | [Martin Redington](https://github.com/mildm8nnered)
|
22 | 22 | [#4792](https://github.com/realm/SwiftLint/issues/4792)
|
23 | 23 |
|
24 |
| -* Add `consider_default_literal_types_redundant` option to the |
25 |
| - `redundant_type_annotation` rule supporting `Bool`, `Double`, `Int` and |
26 |
| - `String`. Setting the option to `true` lets the rule consider said types in |
27 |
| - declarations like `let i: Int = 1` or `let s: String = ""` as redundant. |
28 |
| - Note that `Bool` literals will no longer be considered redundant by default. |
| 24 | +* With the introduction of the `consider_default_literal_types_redundant` |
| 25 | + option to the `redundant_type_annotation` rule, `Bool` literals will no |
| 26 | + longer be considered redundant by default. Set this option to true to |
| 27 | + preserve the previous behavior. |
29 | 28 | [Garric Nahapetian](https://github.com/garricn)
|
30 | 29 |
|
31 | 30 | #### Experimental
|
|
195 | 194 | [Martin Redington](https://github.com/mildm8nnered)
|
196 | 195 | [#5470](https://github.com/realm/SwiftLint/issues/5470)
|
197 | 196 |
|
| 197 | +* Include `Double`, `Int` and `String` to the exiting redundant type validation |
| 198 | + check of `Bool` in the `redundant_type_annotation` rule. Add |
| 199 | + `consider_default_literal_types_redundant` option supporting `Bool`, |
| 200 | + `Double`, `Int` and `String`. Setting this option to `true` lets the rule |
| 201 | + consider said types in declarations like `let i: Int = 1` or |
| 202 | + `let s: String = ""` as redundant. |
| 203 | + [Garric Nahapetian](https://github.com/garricn) |
| 204 | + |
198 | 205 | #### Bug Fixes
|
199 | 206 |
|
200 | 207 | * Silence `discarded_notification_center_observer` rule in closures. Furthermore,
|
|
0 commit comments