Package com.diffplug.gradle.spotless
Class CssExtension
java.lang.Object
com.diffplug.gradle.spotless.FormatExtension
com.diffplug.gradle.spotless.CssExtension
Gradle step for formatting CSS files.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.diffplug.gradle.spotless.FormatExtension
FormatExtension.BiomeGeneric, FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.IdeaConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig -
Field Summary
Fields inherited from class com.diffplug.gradle.spotless.FormatExtension
steps, target, targetExclude, targetExcludeContentPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbiome()Adds the default version of the biome formatter.Adds the given version of the biome formatter.protected voidsetupTask(SpotlessTask task) If the user hasn't specified files, assume all CSS files should be checked.Methods inherited from class com.diffplug.gradle.spotless.FormatExtension
addStep, addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, createIndependentApplyTaskLazy, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, forbidRegex, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, idea, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, leadingSpacesToTabs, leadingSpacesToTabs, leadingTabsToSpaces, leadingTabsToSpaces, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, suppressLintsFor, target, targetExclude, targetExcludeIfContentContains, targetExcludeIfContentContainsRegex, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
Constructor Details
-
CssExtension
-
-
Method Details
-
setupTask
If the user hasn't specified files, assume all CSS files should be checked.- Overrides:
setupTaskin classFormatExtension
-
biome
Adds the default version of the biome formatter. Defaults to downloading the default Biome version from the network. To work offline, you can specify the path to the Biome executable viabiome().pathToExe(...).- Overrides:
biomein classFormatExtension
-
biome
Adds the given version of the biome formatter. Defaults to downloading the default Biome version from the network. To work offline, you can specify the path to the Biome executable viabiome().pathToExe(...).- Overrides:
biomein classFormatExtension- Parameters:
version- Biome version to use.
-