Can not create an EditorConfigOverride without properties. Use 'emptyEditorConfigOverride' instead.
See original GitHub issuekotlin { ktlint(“0.47.1”) .setUseExperimental(true) .editorConfigOverride([ ‘max-line-length’: 120, ‘wrapping’: false]) } Can not create an EditorConfigOverride without properties. Use ‘emptyEditorConfigOverride’ instead.
When i add 'indent_size': 2
to editorConfigOverride, android studio build success.
- ktlint 0.47.1
- gradle 7.5.1
- spotless 6.11.0
- win11
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Unable to pass .editorconfig options as userData when using ...
launching spotlessApply gradle task throws an error: UserData should not contain '.editorconfig' properties [indent_size, max_line_length]. Such ...
Read more >Kotlin Gradle Spotless ktlint configuration - Stack Overflow
I currently use the following way to apply ktlint to my projects: plugins{ id("com.diffplug.spotless") version "6.7.2" } allprojects ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in
plugin-gradle 6.12.0
andplugin-maven 2.28.0
.This should be fixed in the next release of ktlint, 0.48.0. PR that fixes it: https://github.com/pinterest/ktlint/pull/1671
However, support for 0.47.x here in spotless would be great!