diff options
Diffstat (limited to 'build-logic/src/main')
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerAction.kt | 8 |
1 files changed, 6 insertions, 2 deletions
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<KtfmtWorkerParameters> { 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)) { |