Package com.diffplug.gradle.spotless
Class FormatExtension.RomeGeneric
- java.lang.Object
-
- com.diffplug.gradle.spotless.RomeStepConfig<FormatExtension.RomeGeneric>
-
- com.diffplug.gradle.spotless.FormatExtension.RomeGeneric
-
- Enclosing class:
- FormatExtension
@Deprecated public class FormatExtension.RomeGeneric extends RomeStepConfig<FormatExtension.RomeGeneric>
Deprecated.Rome has transitioned to Biome. This will be removed shortly.Generic Rome formatter step that detects the language of the input file from the file name. It should be specified as a formatter step for a genericformat{ ... }.
-
-
Constructor Summary
Constructors Constructor Description RomeGeneric(java.lang.String version)Deprecated.Creates a new Rome config that downloads the Rome executable for the given version from the network.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgetLanguage()Deprecated.Gets the language (syntax) of the input files to format.protected FormatExtension.RomeGenericgetThis()Deprecated.FormatExtension.RomeGenericlanguage(java.lang.String language)Deprecated.Sets the language (syntax) of the input files to format.-
Methods inherited from class com.diffplug.gradle.spotless.RomeStepConfig
configPath, createStep, downloadDir, pathToExe, replaceStep
-
-
-
-
Method Detail
-
language
public FormatExtension.RomeGeneric language(java.lang.String language)
Deprecated.Sets the language (syntax) of the input files to format. Whennullor the empty string, the language is detected automatically from the file name. Currently the following languages are supported by Rome:- 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)
- Parameters:
language- The language of the files to format.- Returns:
- This step for further configuration.
-
getLanguage
protected java.lang.String getLanguage()
Deprecated.Description copied from class:RomeStepConfigGets the language (syntax) of the input files to format. Whennullor 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:
getLanguagein classRomeStepConfig<FormatExtension.RomeGeneric>- Returns:
- The language of the input files.
-
getThis
protected FormatExtension.RomeGeneric getThis()
Deprecated.- Specified by:
getThisin classRomeStepConfig<FormatExtension.RomeGeneric>- Returns:
- This Biome config instance.
-
-