-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Function Signature flip-flops between violations with long expression body #1897
Comments
I can not reproduce the problem wih the code sample and |
I was able to verify, thanks! Sidenote: Versions after
because of
|
@Goooler Can you verify whether we need corrective action here? According to command:
I have added |
Some modules depend on ktlint/ktlint-cli/build.gradle.kts Line 29 in f803480
ktlint/ktlint-test/build.gradle.kts Line 8 in 57e72f6
The reason why See: |
@Goooler why is the version set for the other modules though? Also why is
Also is there a reason for using |
|
Shouldn't it be
|
When I run the
|
https://oss.sonatype.org/content/repositories/snapshots/com/pinterest/ktlint/ktlint/0.49.0-SNAPSHOT/ktlint-0.49.0-20230407.184110-20.pom |
Issue closed as original problem was a duplicate. The |
Expected Behavior
function-signature
does not flip-flop between violations.Observed Behavior
function-signature
with--format
moves too long expression body to new line. Second run will move it back up.It flip-flops between
and
Steps to Reproduce
function-signature
withmax_line_length
of120
.The first long method name is just to force breaking the parameter and haven the closing parenthesis in a new line.
The long method in the expression body can also be replaced with a long chained function call.
Your Environment
The text was updated successfully, but these errors were encountered: