Mervyn McCreight
03/17/2021, 2:37 PMkotlin_imports_layout = idea
in my .editorconfig
, which is deprecated now.
If I change that to ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^
like suggested in the deprecation message, the linting with KTLint fails because of wrong import ordering. If I let ktlint format my source files it formats the imports alphabetically.
I'm using one of the gradle plugins (https://github.com/jlleitschuh/ktlint-gradle) mentioned in the README to integrate ktlint into my project.
Does anyone have any ideas? 🤔tapchicoma
03/17/2021, 3:26 PMromtsn
03/17/2021, 3:48 PMtapchicoma
03/17/2021, 4:07 PMMervyn McCreight
03/17/2021, 4:11 PMromtsn
03/17/2021, 7:17 PM--android
flag and you’ve defined the `ij_kotlin_imports_layout`only for some certain modules/paths, then it could be the reason you’re getting alphabetical order.romtsn
03/17/2021, 7:18 PMMervyn McCreight
03/22/2021, 10:29 AMtapchicoma
03/22/2021, 10:30 AMtapchicoma
03/22/2021, 10:30 AM9.4.0
will work fine with 0.41.0