Skip to content

Commit c044d71

Browse files
committed
Separate CHANGELOG entry
1 parent efa5b17 commit c044d71

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

CHANGELOG.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
[Martin Redington](https://github.com/mildm8nnered)
2222
[#4792](https://github.com/realm/SwiftLint/issues/4792)
2323

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.
2928
[Garric Nahapetian](https://github.com/garricn)
3029

3130
#### Experimental
@@ -195,6 +194,14 @@
195194
[Martin Redington](https://github.com/mildm8nnered)
196195
[#5470](https://github.com/realm/SwiftLint/issues/5470)
197196

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+
198205
#### Bug Fixes
199206

200207
* Silence `discarded_notification_center_observer` rule in closures. Furthermore,

0 commit comments

Comments
 (0)