diffplug / diffplug/spotless

targetExcludeFilename

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

I'm going to speculate this is not the most efficient

```kts
java {
targetExclude("**/TransactionBeanPostProcessorTest.java")
licenseHeader(copyright + javaLicense)
cleanthat().addMutators(listOf("SafeAndConsensual", "SafeButNotConsensual"))
}
```

I'd rather just write this, which would match that filename specifically.

```kts
targetExcludeFiles("TransactionBeanPostProcessorTest.java")
```

I have a problem where cleanThat can't currently handle java 21 code, and so I'm trying to make spotless skip it.

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.