Specify import ordering rules

Now Android Studio and ktlint should finally agree on how to order imports.
This commit is contained in:
cketti 2020-10-16 14:35:46 +02:00
parent ed8009d9fa
commit 10be88d3e1
2 changed files with 9 additions and 1 deletions

2
.editorconfig Normal file
View file

@ -0,0 +1,2 @@
[*.{kt,kts}]
kotlin_imports_layout = *,^*

View file

@ -7,7 +7,13 @@
<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
<package name="kotlinx.android.synthetic" withSubpackages="true" static="false" />
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
</value>
</option>
<option name="PACKAGES_IMPORT_LAYOUT">
<value>
<package name="" alias="false" withSubpackages="true" />
<package name="" alias="true" withSubpackages="true" />
</value>
</option>
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" />