Package com.diffplug.spotless.kotlin
Class KtfmtStep.KtfmtFormattingOptions
java.lang.Object
com.diffplug.spotless.kotlin.KtfmtStep.KtfmtFormattingOptions
- All Implemented Interfaces:
Serializable
- Enclosing class:
KtfmtStep
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKtfmtFormattingOptions
(Integer maxWidth, Integer blockIndent, Integer continuationIndent, Boolean removeUnusedImports, KtfmtStep.TrailingCommaManagementStrategy trailingCommaManagementStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setBlockIndent
(int blockIndent) void
setContinuationIndent
(int continuationIndent) void
setMaxWidth
(int maxWidth) void
setRemoveUnusedImports
(boolean removeUnusedImports) void
setTrailingCommaManagementStrategy
(KtfmtStep.TrailingCommaManagementStrategy trailingCommaManagementStrategy)
-
Constructor Details
-
KtfmtFormattingOptions
public KtfmtFormattingOptions() -
KtfmtFormattingOptions
public KtfmtFormattingOptions(@Nullable Integer maxWidth, @Nullable Integer blockIndent, @Nullable Integer continuationIndent, @Nullable Boolean removeUnusedImports, @Nullable KtfmtStep.TrailingCommaManagementStrategy trailingCommaManagementStrategy)
-
-
Method Details
-
setMaxWidth
public void setMaxWidth(int maxWidth) -
setBlockIndent
public void setBlockIndent(int blockIndent) -
setContinuationIndent
public void setContinuationIndent(int continuationIndent) -
setRemoveUnusedImports
public void setRemoveUnusedImports(boolean removeUnusedImports) -
setTrailingCommaManagementStrategy
public void setTrailingCommaManagementStrategy(KtfmtStep.TrailingCommaManagementStrategy trailingCommaManagementStrategy)
-