Skip to content

Commit

Permalink
Restore ktfmt config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jan 24, 2024
1 parent 54030eb commit 5d8e618
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ tasks.withType<DetektCreateBaselineTask>().configureEach { jvmTarget = "1.8" }

allprojects {
apply(plugin = Dependencies.Plugin.dependencyCheckId)
apply(plugin = Dependencies.Plugin.ktfmtId)

repositories {
google()
Expand All @@ -70,6 +71,12 @@ allprojects {
failBuildOnCVSS = 0F // All severity levels
suppressionFile = "${rootProject.projectDir}/config/dependency-check-suppression.xml"
}

configure<com.ncorti.ktfmt.gradle.KtfmtExtension> {
kotlinLangStyle()
maxWidth.set(100)
removeUnusedImports.set(true)
}
}

tasks.withType<DependencyUpdatesTask> {
Expand Down

0 comments on commit 5d8e618

Please sign in to comment.