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
… not result in a max-line-length violation
In case the whitespace contains a newline than replacing it with a single space results in merging the lines to a single line. This rule allows this only when the merged lines entirely fit on a single line.
Suppose that code below does not fit on a single line than this rule no longer emits a violation:
fun foo():
String = "some-looooooooooooooooong-string"
See FunctionSignatureRule for reformatting the function like below:
fun foo(): String =
"some-looooooooooooooooong-string"
Closes#1764
… rule (#1843)
* Replacing a whitespace containing a newline after the return type may not result in a max-line-length violation
In case the whitespace contains a newline than replacing it with a single space results in merging the lines to a single line. This rule allows this only when the merged lines entirely fit on a single line.
Suppose that code below does not fit on a single line than this rule no longer emits a violation:
fun foo():
String = "some-looooooooooooooooong-string"
See FunctionSignatureRule for reformatting the function like below:
fun foo(): String =
"some-looooooooooooooooong-string"
Closes#1764
* Update changelog
Steps to Reproduce
will reformat to:
Which will violate the max-line-length rule.
The rule may need to make an exception for parameterless functions, or honor the max line length.
Your Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: