Skip to content

Commit

Permalink
Separate CHANGELOG entry
Browse files Browse the repository at this point in the history
  • Loading branch information
garricn committed May 1, 2024
1 parent efa5b17 commit c044d71
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
[Martin Redington](https://github.com/mildm8nnered)
[#4792](https://github.com/realm/SwiftLint/issues/4792)

* Add `consider_default_literal_types_redundant` option to the
`redundant_type_annotation` rule supporting `Bool`, `Double`, `Int` and
`String`. Setting the option to `true` lets the rule consider said types in
declarations like `let i: Int = 1` or `let s: String = ""` as redundant.
Note that `Bool` literals will no longer be considered redundant by default.
* With the introduction of the `consider_default_literal_types_redundant`
option to the `redundant_type_annotation` rule, `Bool` literals will no
longer be considered redundant by default. Set this option to true to
preserve the previous behavior.
[Garric Nahapetian](https://github.com/garricn)

#### Experimental
Expand Down Expand Up @@ -195,6 +194,14 @@
[Martin Redington](https://github.com/mildm8nnered)
[#5470](https://github.com/realm/SwiftLint/issues/5470)

* Include `Double`, `Int` and `String` to the exiting redundant type validation
check of `Bool` in the `redundant_type_annotation` rule. Add
`consider_default_literal_types_redundant` option supporting `Bool`,
`Double`, `Int` and `String`. Setting this option to `true` lets the rule
consider said types in declarations like `let i: Int = 1` or
`let s: String = ""` as redundant.
[Garric Nahapetian](https://github.com/garricn)

#### Bug Fixes

* Silence `discarded_notification_center_observer` rule in closures. Furthermore,
Expand Down

0 comments on commit c044d71

Please sign in to comment.