Mercurial equivalent for ratchetFrom
Open
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
Assessment
This issue has not been assessed yet.