Package com.diffplug.gradle.spotless
Class ShellExtension
- java.lang.Object
-
- com.diffplug.gradle.spotless.FormatExtension
-
- com.diffplug.gradle.spotless.ShellExtension
-
public class ShellExtension extends FormatExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classShellExtension.ShfmtExtension-
Nested classes/interfaces inherited from class com.diffplug.gradle.spotless.FormatExtension
FormatExtension.BiomeGeneric, FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig, FormatExtension.RomeGeneric
-
-
Field Summary
-
Fields inherited from class com.diffplug.gradle.spotless.FormatExtension
steps, target, targetExclude, targetExcludeContentPattern
-
-
Constructor Summary
Constructors Constructor Description ShellExtension(SpotlessExtension spotless)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetupTask(SpotlessTask task)If the user hasn't specified files, assume all shell files should be checked.ShellExtension.ShfmtExtensionshfmt()Adds the specified version of shfmt.ShellExtension.ShfmtExtensionshfmt(java.lang.String version)Adds the specified version of shfmt.-
Methods inherited from class com.diffplug.gradle.spotless.FormatExtension
addStep, addStep, biome, biome, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, createIndependentApplyTaskLazy, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, rome, rome, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, targetExcludeIfContentContains, targetExcludeIfContentContainsRegex, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
-
-
-
Constructor Detail
-
ShellExtension
@Inject public ShellExtension(SpotlessExtension spotless)
-
-
Method Detail
-
setupTask
protected void setupTask(SpotlessTask task)
If the user hasn't specified files, assume all shell files should be checked.- Overrides:
setupTaskin classFormatExtension
-
shfmt
public ShellExtension.ShfmtExtension shfmt(java.lang.String version)
Adds the specified version of shfmt.
-
shfmt
public ShellExtension.ShfmtExtension shfmt()
Adds the specified version of shfmt.
-
-