I'm updating ktlint to the latest version and it w...
# ktlint
a
I'm updating ktlint to the latest version and it wants to format like this:
Copy code
foo
  .bar {
    ...
  }.baz {
    ...
  }
whereas I want to format like this (so that you can remove an operator without affecting the closing
}
):
Copy code
foo
  .bar {
    ...
  }
  .baz {
    ...
  }
I can disable the "Chain method continuation" rule but then you get no enforcement at all. Has anyone solved the same issue?
p
This is intended behavior and cannot be configured.
a
Bummer
b
I'd like the same thing
Copy code
}.baz {
pollutes diffs in case the
bar
statement changes to be a single line one, the row containing
baz
will be marked as changed because its
}
is mixed with the next element in the chain.