question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not create an EditorConfigOverride without properties. Use 'emptyEditorConfigOverride' instead.

See original GitHub issue

kotlin { 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nedtwiggcommented, Nov 24, 2022

Fixed in plugin-gradle 6.12.0 and plugin-maven 2.28.0.

1reaction
tcrawford-figurecommented, Oct 21, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found