diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerAction.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerAction.kt index d9b265b7..ef7e63e7 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerAction.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerAction.kt @@ -28,10 +28,14 @@ abstract class KtfmtWorkerAction : WorkAction { Formatter.format( FormattingOptions( style = FormattingOptions.Style.GOOGLE, - maxWidth = 100, + maxWidth = FormattingOptions.DEFAULT_MAX_WIDTH, + blockIndent = 2, continuationIndent = 2, + removeUnusedImports = true, + debuggingPrintOpsAfterFormatting = false, + manageTrailingCommas = true, ), - sourceText + sourceText, ) if (!formattedText.contentEquals(sourceText)) {