[Feature] Support editorconfig
- 主要言語
- Java
- スター
- 5.6k
- フォーク
- 559
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 43
説明
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
コントリビューションガイド
調査の方向性
`spotless { ... }` で示されている Spotless Gradle DSL のエントリポイントから開始し、既存の format および `java` の設定を、リンクされている ec4j-gradle-plugin と比較します。`editorConfig()` が示されているフォーマット設定を導出し、`java` などの設定から利用できるようにできれば完了です。共有 Java ライブラリを対象範囲に含めるかどうかを明確にしてください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, kotlin
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100