jeremymailen / kotlinter-gradle

Painless, fast ktlint plugin for Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The indent_size configured in .editorconfig does not take effect

junerver opened this issue · comments

kolinter:3.14.0
kotlin:1.8.21
gradle:7.5

My .editorconfig file is as follows

root = true

[*]
charset = utf-8
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.java]
ij_java_use_single_class_imports = true

[*.{kt,kts}]
indent_size = 4
ij_kotlin_imports_layout = *
ij_kotlin_allow_trailing_comma = false
ij_kotlin_allow_trailing_comma_on_call_site = false

I configure indent here as 4 spaces,When I execute the formatKotlin task, they are formatted into 2 space,I'm using kotlinter in an android project, I don't know if that makes a difference

Sorry, after my test I think this is a problem with Android Studio, I was using Android Studio Giraffe | 2022.3.1 Beta 2 before, when I changed to Android Studio Hedgehog | 2023.1.1 Canary 3 this problem was solved