diffplug / diffplug/spotless

Mercurial equivalent for ratchetFrom

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

Description

We have a large Kotlin project where we use spotless.
However, it is pretty slow. I came across the ratchetFrom property but seems like it is only for Git.
How can I make spotless run on just modified files to make the build faster?
 
- Gradle
- spotless version - 6.23.3
- operating system and version - Mac OSX 14.4.1

configure {
kotlin {
target("**/*.kt", "**/*.kts")
targetExclude("$buildDir/**/*", "**/build/**/*", "**/node_modules/**/*")
ktfmt(findProperty("cbrKtfmtVersion")!! as String)
}
}

tasks.getByName("build") {
group = "build"
dependsOn("spotlessApply")
}

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.