Hi.. is it somehow possible to configure ktlint w...
# ktlint
d
Hi.. is it somehow possible to configure ktlint with
kotlin_imports_layout
to allow idea and ascii import ordering (so not the whole repo needs to change it’s order but we can still use the idea built in import order)?
r
Not sure I got the question, do you want to have both idea and ascii orders at the same time?
d
yes (only reason is so I don’t have to change the import order on all the other files of the project, modules but benefit for new ones)
t
you could redefine it for specific folders in
.editorconfig
file. Something like:
Copy code
[path/to/specific/sources/**/{*.kt,*.kts}]
kotlin_imports_layout=ascii
This block will redefine defautl value you've set in
[{**.kt,*.kts}]*
block
d
ok .. but I guess that makes things even more complicated than to change the order of all files one time..