Hey guys, we recently updated from ktlint `0.39.0`...
# ktlint
a
Hey guys, we recently updated from ktlint
0.39.0
to
0.41.0
and it seems like the rules for string indentation have changed (code in thread). Can we get the old behavior back somehow and does someone know the reasoning behind this change?
6
This:
Copy code
operator fun x(resources: Resources, entity: X):
        ListItem<DocumentListItems.DocumentListItemBindingHolder, out ViewBinding> =
            createDocumentListItem(
                resources = resources,
                ...
            )
Will be formatted like so:
Copy code
operator fun x(resources: Resources, entity: X):
        ListItem<DocumentListItems.DocumentListItemBindingHolder, out ViewBinding> =
        createDocumentListItem(
            resources = resources,
            ...
        )
Which is way less readable imo
s
@Alex can you run with
--verbose
to see which rule it is that’s affecting the indentation?
c
it seems that it is the indent rule that is responsible …
Unexpected indentation (12) (should be 8) (indent)
s
thanks. we have a few open bugs with indentation so i’m checking the primary maintainer for that rule
r
@Alex could you please file an issue on github? thanks