Formatting inconsistent when both <tabs> and <spaces> indentation rules are present
- 主要言語
- Java
- スター
- 5.7k
- フォーク
- 561
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 43
説明
I'm encountering inconsistent formatting behavior when both blocks — one tabs true and another with spaces true — are defined under the Spotless configuration in a Maven project.
Some Java files are formatted, some are skipped, and others show partial formatting. When I remove one of the two blocks, the behavior becomes consistent.
I keep getting this debug log
``` [DEBUG] Spotless will not format an up-to-date file: ```
```java
com.diffplug.spotless
spotless-maven-plugin
2.43.0
src/main/java/**/*.java
src/test/java/**/*.java
true
2
true
4
1.17.0
pom.xml
false
**/node/**
**/node_modules/**
**/*.md
check
validate
```
コントリビューションガイド
調査の方向性
まず、issue にある Maven プラグイン設定で動作を再現し、2 つの Java ブロックと、src/main/java/**/*.java および src/test/java/**/*.java の includes に焦点を当てます。Maven 設定が複数のインデント規則をどのように処理するかを確認します。両方の規則が存在する場合に Java ファイルが一貫してフォーマットされ、最新の debug メッセージが期待どおりに動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100