early-exit: add option for disabling in constructors
jesperzach opened this issue · 2 comments
jesperzach commented
To me, it feels unconventional to use return in a constructor and it can potentially override the object reference if a non-primitive type is returned. I like the early-exit
rule, but would love be able to enable an option that would disable the rule inside all constructors.
ajafff commented
Agreed. Adding a new option sounds reasonable.
cheeZery commented
I'd like to take a swing at this.