[Feature] Support editorconfig
- Vorherrschende Sprache
- Java
- Sterne
- 5.6k
- Forks
- 559
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 34
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.