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
classCourse(varnumber:String) { funchangeNumber(newNumber:String) { number = newNumber } }
This is mostly covered by #2001. Other constructs can only be placed on same line when separated by ; which will be covered by #1078. Issue is closed as duplicate.
Expected Behavior
ktlint
should not pass code like this:which is much clearer written:
(Yes, I know that this is a dumb example. But you get the drift.)
Current Behavior
At least with the ruleset that I have enabled the code above is accepted without errors, until you hit the line limit if there is one.
I'm curious about whether this is on the roadmap or considered out of scope for
ktlint
.Additional information
The text was updated successfully, but these errors were encountered: