From 5d8e61885a1adf3b0b1aa4a4afd823450c60c7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Wed, 24 Jan 2024 15:56:41 +0100 Subject: [PATCH] Restore ktfmt config --- android/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index c4d9edf7995e..200f899cbb5e 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -60,6 +60,7 @@ tasks.withType().configureEach { jvmTarget = "1.8" } allprojects { apply(plugin = Dependencies.Plugin.dependencyCheckId) + apply(plugin = Dependencies.Plugin.ktfmtId) repositories { google() @@ -70,6 +71,12 @@ allprojects { failBuildOnCVSS = 0F // All severity levels suppressionFile = "${rootProject.projectDir}/config/dependency-check-suppression.xml" } + + configure { + kotlinLangStyle() + maxWidth.set(100) + removeUnusedImports.set(true) + } } tasks.withType {