diffplug / diffplug/spotless

multi configuration same language

Open
#2,070 0 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

So, due to an incompatibility down the stack with java 21 (at the time of this writing) I'm trying to have `cleanThat` skip a specific file. I'm not certain based on their docs if I can skip a specific file with this. Anyways, I tried this, hoping it might work (also tried adding a target)

```kts
java {
licenseHeader(copyright + javaLicense)
}

java {
targetExclude("**/TransactionBeanPostProcessorTest.java")
cleanthat().addMutators(listOf("SafeAndConsensual", "SafeButNotConsensual"))
}
```

yeah, that doesn't work, but could it? my hope was taking 2 passes, license header over everything, but clean that over most things. As it appears I'll have to choose to skip this one file entirely or remove clean that entirely (I doubt it finds problems for me anyways).

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.