Class Format
- java.lang.Object
-
- com.diffplug.spotless.maven.FormatterFactory
-
- com.diffplug.spotless.maven.generic.Format
-
public class Format extends FormatterFactory
AFormatterFactory
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 Summary
Constructors Constructor Description Format()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBiome(Biome biome)
Adds a step to this format that format code with the Biome formatter.void
addRome(Rome rome)
Deprecated.Rome has transitioned to Biome.java.util.Set<java.lang.String>
defaultIncludes(org.apache.maven.project.MavenProject project)
java.lang.String
licenseHeaderDelimiter()
-
Methods inherited from class com.diffplug.spotless.maven.FormatterFactory
addEclipseWtp, addEndWithNewline, addIndent, addJsr223, addLicenseHeader, addNativeCmd, addPrettier, addReplace, addReplaceRegex, addStepFactory, addToggleOffOn, addTrimTrailingWhitespace, excludes, includes, newFormatter
-
-
-
-
Method Detail
-
defaultIncludes
public java.util.Set<java.lang.String> defaultIncludes(org.apache.maven.project.MavenProject project)
- Specified by:
defaultIncludes
in classFormatterFactory
-
licenseHeaderDelimiter
public java.lang.String licenseHeaderDelimiter()
- Specified by:
licenseHeaderDelimiter
in classFormatterFactory
-
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.
-
addRome
@Deprecated public void addRome(Rome rome)
Deprecated.Rome has transitioned to Biome. UseaddBiome(Biome)
.Adds a step to this format that format code with the Rome formatter.- Parameters:
rome
- Rome configuration to use.
-
-