diffplug / diffplug/spotless

Formatting inconsistent when both <tabs> and <spaces> indentation rules are present

Open
#2,480 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

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



```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.