Package com.diffplug.spotless.kotlin
Class KtfmtStep
- java.lang.Object
-
- com.diffplug.spotless.kotlin.KtfmtStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KtfmtStep.KtfmtFormattingOptions
static class
KtfmtStep.Style
Used to allow multiple style option through formatting options and since when is each of them available.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
defaultVersion()
-
-
-
Method Detail
-
create
public static FormatterStep create(Provisioner provisioner)
Creates a step which formats everything - code, import order, and unused imports.
-
create
public static FormatterStep create(String version, Provisioner provisioner)
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
public static String defaultVersion()
-
-