Package com.diffplug.spotless.kotlin
Class KtfmtStep
java.lang.Object
com.diffplug.spotless.kotlin.KtfmtStep
- All Implemented Interfaces:
Serializable
Wraps up ktfmt as a FormatterStep.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Used to allow multiple style option through formatting options and since when is each of them available.static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormatterStep
create
(Provisioner provisioner) Creates a step which formats everything - code, import order, and unused imports.static FormatterStep
create
(String version, Provisioner provisioner) Creates a step which formats everything - code, import order, and unused imports.static FormatterStep
create
(String version, Provisioner provisioner, KtfmtStep.Style style, KtfmtStep.KtfmtFormattingOptions options) Creates a step which formats everything - code, import order, and unused imports.static String
-
Method Details
-
create
Creates a step which formats everything - code, import order, and unused imports. -
create
Creates a step which formats everything - code, import order, and unused imports. -
create
public static FormatterStep create(String version, Provisioner provisioner, @Nullable KtfmtStep.Style style, @Nullable KtfmtStep.KtfmtFormattingOptions options) Creates a step which formats everything - code, import order, and unused imports. -
defaultVersion
-