[Feature] Support editorconfig
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
Support https://editorconfig.org
instead of this
```ts
spotless {
// optional: limit format enforcement to just the files changed by this feature branch
ratchetFrom 'origin/main'
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
```
you could simply do
```kotlin
spotless {
editorConfig()
}
```
which would simply figure out all the same information, and also presumably pass it to other things like
```kotlin
spotless {
java {
}
```
would inherit it.
possibly code or coordination of a general library for editor config in java here.
https://github.com/ec4j/editorconfig-gradle-plugin
Contributor guide
Assessment
This issue has not been assessed yet.