Class PalantirJavaFormatStep

java.lang.Object
com.diffplug.spotless.java.PalantirJavaFormatStep
All Implemented Interfaces:
Serializable

public class PalantirJavaFormatStep extends Object implements Serializable
Wraps up palantir-java-format fork of google-java-format as a FormatterStep.
See Also:
  • Field Details

  • Method Details

    • 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, String style, Provisioner provisioner)
      Creates a step which formats code, import order, and unused imports, but not Java docs. And with the given format style.
    • create

      public static FormatterStep create(String version, String style, boolean formatJavadoc, Provisioner provisioner)
      Creates a step which formats everything - code, import order, unused imports, and Java docs. And with the given format style.
    • defaultVersion

      public static String defaultVersion()
      Get default formatter version
    • defaultStyle

      public static String defaultStyle()
      Get default style
    • defaultFormatJavadoc

      public static boolean defaultFormatJavadoc()
      Get default for whether Java docs should be formatted