Make redundant_discardable_let and unused_optional_binding opt-in #1446
Labels
discussion
Topics that cannot be categorized as bugs or enhancements yet. They require further discussions.
wontfix
Issues that became stale and were auto-closed by a bot.
I believe code should be as easy possible to change. I think
redundant_discardable_let
andunused_optional_binding
make code harder to change. Because of this I would prefer them to be opt-in rules.They make code harder to change because with
redundant_discardable_let
thelet
has to be prepended again when the requirements change such that the value does have to be captured.The
unused_optional_binding
is even harder because the code has to change from a trailing!= nil
to a leadinglet name =
.These rules are debated in the community and I think they should therefore be an opt-in rule
The text was updated successfully, but these errors were encountered: