This code should print Function body should be replaced with body expression (standard:function-expression-body) when use ktlint.
When i set ktlint_standard_function-expression-body = enabled to my .editorconfig, it doesn't work when I do ./gradlew ktlintcheck.
But it works with commend ktlint --editorconfig=./.editorconfig(with official library)
Is there any reason you can think of? For example, it might be conflicting with another setting, or a specific version is not supported yet.
my versions : java: 17, gradle: 8.10, kotlin: 1.7, ktlint-gradle: 12.1.1, ktlint: 1.3.1
This code should print
Function body should be replaced with body expression (standard:function-expression-body)
when use ktlint. When i setktlint_standard_function-expression-body = enabled
to my .editorconfig, it doesn't work when I do./gradlew ktlintcheck
. But it works with commendktlint --editorconfig=./.editorconfig
(with official library)Is there any reason you can think of? For example, it might be conflicting with another setting, or a specific version is not supported yet.