Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Spotless Gradle plugin doesn't respect .editorconfig changes when using daemon

Open
#1,924 9 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Reproduce the issue with Gradle 8.4 or 8.5, Spotless 6.23.1, the Gradle daemon enabled, and a failing rule in .editorconfig; run ./gradlew spotlessCheck before and after disabling the rule. Investigate how spotlessCheck treats .editorconfig during the daemon run, and consider the issue done when the second invocation passes without --no-daemon.

Written by the indexing model from the issue text.

Description

bug
  • summary of problem
    Steps to reproduce:

  • enable Gradle daemon

  • run ./gradlew spotlessCheck with some failing rule.

  • disable said rule in .editorconfig

  • run ./gradlew spotlessCheck again.

Expected: check passes.
Actual: check fails again.

Adding a --no-daemon command line parameter to second invocation resolves the issue; which hints that daemon somehow caches file contents, or doesn't treat it as an input to Gradle task.

  • Gradle or Maven version
    Gradle 8.4, 8.5

  • spotless version
    Spotless 6.23.1

  • operating system and version
    macos Sonoma, 14.1.1

Dominant language
Java
Stars
5.7k
Forks
560
Avg merge
1d 13h
Merged PRs (30d)
43

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from diffplug/spotless

All issues in diffplug/spotless

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.