Class Biome
- java.lang.Object
-
- com.diffplug.spotless.maven.rome.AbstractRome
-
- com.diffplug.spotless.maven.generic.Biome
-
- All Implemented Interfaces:
FormatterStepFactory
public class Biome extends AbstractRome
Generic Biome formatter step that detects the language of the input file from the file name. It should be specified as a formatter step for a generic<format>
.
-
-
Constructor Summary
Constructors Constructor Description Biome()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getLanguage()
Gets the language (syntax) of the input files to format.-
Methods inherited from class com.diffplug.spotless.maven.rome.AbstractRome
newFormatterStep
-
-
-
-
Method Detail
-
getLanguage
protected java.lang.String getLanguage()
Description copied from class:AbstractRome
Gets the language (syntax) of the input files to format. Whennull
or the empty string, the language is detected automatically from the file name. Currently the following languages are supported by Biome:- js (JavaScript)
- jsx (JavaScript + JSX)
- js? (JavaScript or JavaScript + JSX, depending on the file extension)
- ts (TypeScript)
- tsx (TypeScript + JSX)
- ts? (TypeScript or TypeScript + JSX, depending on the file extension)
- json (JSON)
- Specified by:
getLanguage
in classAbstractRome
- Returns:
- The language of the input files.
-
-