Mercurial equivalent for ratchetFrom
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- git, kotlin
- Domain
- build-system
Research direction
Start by reading the ratchetFrom support exposed through SpotlessExtension and the spotlessApply task, then examine how the current Git-only behavior relates to the requested Mercurial workflow. Done means Spotless can run formatting only on modified files in the reported Gradle/Kotlin setup through a documented Mercurial equivalent.
Written by the indexing model from the issue text.
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<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("/*.kt", "/.kts")
targetExclude("$buildDir/**/", "/build//", "/node_modules//")
ktfmt(findProperty("cbrKtfmtVersion")!! as String)
}
}
tasks.getByName("build") {
group = "build"
dependsOn("spotlessApply")
}
- Dominant language
- Java
- Stars
- 5.7k
- Forks
- 560
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 43
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/spotless
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
All issues in diffplug/spotless
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100