Add support for ktlint to respect .editorconfig
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:49
- Comments:32 (22 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Any progress on this?
Any updates on this? I’ve tried different approaches and I can’t figure out how to make Spotless use the
.editorconfig
.