Ktlint format on a specific file #831
kamalshabanow
started this conversation in
General
Replies: 1 comment
-
You could probably use the https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/util/PatternFilterable.html configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any gradle command to format specific file using ktlint? In large projects, formatting with
./gradlew ktlintFormat
makes the PR very large, which makes the review process more difficultFor example:
./gradlew ktlintFormat "specific file"
Beta Was this translation helpful? Give feedback.
All reactions