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 classstatic enumUsed to allow multiple style option through formatting options and since when is each of them available. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormatterStepcreate(Provisioner provisioner) Creates a step which formats everything - code, import order, and unused imports.static FormatterStepcreate(String version, Provisioner provisioner) Creates a step which formats everything - code, import order, and unused imports.static FormatterStepcreate(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
-