Class Format

java.lang.Object
com.diffplug.spotless.maven.FormatterFactory
com.diffplug.spotless.maven.generic.Format

public class Format extends FormatterFactory
A FormatterFactory implementation that corresponds to <format>...</format> configuration element.

It defines a formatter for custom includes/excludes that executes list of generic, language agnostic steps, like LicenseHeader.

  • Constructor Details

    • Format

      public Format()
  • Method Details

    • defaultIncludes

      public Set<String> defaultIncludes(org.apache.maven.project.MavenProject project)
      Specified by:
      defaultIncludes in class FormatterFactory
    • licenseHeaderDelimiter

      public String licenseHeaderDelimiter()
      Specified by:
      licenseHeaderDelimiter in class FormatterFactory
    • addBiome

      public void addBiome(Biome biome)
      Adds a step to this format that format code with the Biome formatter.
      Parameters:
      biome - Biome configuration to use.