Class Format
java.lang.Object
com.diffplug.spotless.maven.FormatterFactory
com.diffplug.spotless.maven.generic.Format
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a step to this format that format code with the Biome formatter.defaultIncludes(org.apache.maven.project.MavenProject project) Methods inherited from class com.diffplug.spotless.maven.FormatterFactory
addEclipseWtp, addEndWithNewline, addIdea, addIndent, addJsr223, addLicenseHeader, addNativeCmd, addPrettier, addReplace, addReplaceRegex, addStepFactory, addToggleOffOn, addTrimTrailingWhitespace, excludes, includes, init, newFormatter
-
Constructor Details
-
Format
public Format()
-
-
Method Details
-
defaultIncludes
- Specified by:
defaultIncludesin classFormatterFactory
-
licenseHeaderDelimiter
- Specified by:
licenseHeaderDelimiterin classFormatterFactory
-
addBiome
Adds a step to this format that format code with the Biome formatter.- Parameters:
biome- Biome configuration to use.
-