mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
fix(build): automatically manage trailing commas in ktfmt
This commit is contained in:
parent
09feaf89f6
commit
de6cdfee0e
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user