Closed rakuyoMo closed 2 months ago
Seems reasonable. If you'd be interested in trying to contribute such a rule I'd be happy to accept it, otherwise I'll add it to the backlog
Seems reasonable. If you'd be interested in trying to contribute such a rule I'd be happy to accept it, otherwise I'll add it to the backlog
I'll try it. Do you recommend adding a new rule, or adding a new parameter to redundantNilInit
?
I'll try it. Do you recommend adding a new rule, or adding a new parameter to
redundantNilInit
?
It should be a new parameter. Probably something like --nilinit insert/remove/properties-only
Our team's norm is that all variables need to be explicitly assigned an initial value, including the special case of
Optional
. I noticed the redundantNilInit rule and hoped there would be an opposite rule that would automatically add anil
initial value toOptional
type values.