You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an experimental function signature rule which is fantastic. I was first going to file a bug report that this is not applied to constructors, but on closer inspection of the different cases I think perhaps constructor validation should be a different rule.
This config enabled both function signature and the proposed constructor signature:
There is an experimental function signature rule which is fantastic. I was first going to file a bug report that this is not applied to constructors, but on closer inspection of the different cases I think perhaps constructor validation should be a different rule.
I am very pleased that you like the function-signature rule. It is also one of my favorite rules. Your examples should be taken into account in the scope of #1349 which was already planned for the 1.0 release.
Expected Rule behavior
There is an experimental function signature rule which is fantastic. I was first going to file a bug report that this is not applied to constructors, but on closer inspection of the different cases I think perhaps constructor validation should be a different rule.
This config enabled both function signature and the proposed constructor signature:
They both use the same force multiline rule for consistency.
The most clear-cut case is for secondary constructors:
Then there is the case of primary constructors. These are up to debate, but IMO they should be treated the same way as secondary constructors.
The text was updated successfully, but these errors were encountered: