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.

Add support for ktlint to respect .editorconfig

See original GitHub issue

I found a bug with klint, especially the use of .editorconfig file.

When I use only klint the indend_size of the file is well use but not with spotless. Is there a configuration to put in spotless?

Below my config:

build.gradle

spotless {
	kotlin {
		ktlint('0.9.2')
	}
}

.editorconfig

root=true

[*.{kt,kts}]
indent_size=2

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:49
  • Comments:32 (22 by maintainers)

github_iconTop GitHub Comments

9reactions
erikhofercommented, Mar 15, 2019

Any progress on this?

8reactions
cesardscommented, Jul 20, 2021

Any updates on this? I’ve tried different approaches and I can’t figure out how to make Spotless use the .editorconfig .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ktlint ignores .editorconfig - kotlin - Stack Overflow
I wanted to try out Kotlin and ktlint and I was happy to see that it supports tab indentation via the editorconfig file...
Read more >
README.md - Google Git
(+ we respect you .editorconfig and support additional ruleset|s). ... On macOS (or Linux) you can also use brew - brew install shyiko/ktlint/ktlint...
Read more >
KtLint configuration
Ktlint uses some properties defined by .editorconfig, IntelliJ IDEA and custom ... Due to this error an additional space is added between glob...
Read more >
ktlint download | SourceForge.net
... code style from kotlinlang.org and Android Kotlin Style Guide (+ we respect your .editorconfig and support additional ruleset|s).
Read more >
Add Ktlint to Android app - Andres Sandoval - Medium
Create a new file ktlint.gradle, and add below code: ... Create a new file .editorconfig; Add ignore rule (example below ignores no-wildcard-imports).
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