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
Alex
05/19/2021, 8:37 AM
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,
...
)
Alex
05/19/2021, 8:37 AM
Which is way less readable imo
s
Sha Sha Chu
05/19/2021, 3:57 PM
@Alex can you run with
--verbose
to see which rule it is that’s affecting the indentation?
c
Christian Meese
05/20/2021, 6:33 AM
it seems that it is the indent rule that is responsible …
Unexpected indentation (12) (should be 8) (indent)
s
Sha Sha Chu
05/20/2021, 3:54 PM
thanks. we have a few open bugs with indentation so i’m checking the primary maintainer for that rule
r
romtsn
05/21/2021, 5:51 PM
@Alex could you please file an issue on github? thanks