Package com.diffplug.gradle.spotless
Class BaseKotlinExtension
- java.lang.Object
-
- com.diffplug.gradle.spotless.FormatExtension
-
- com.diffplug.gradle.spotless.BaseKotlinExtension
-
- Direct Known Subclasses:
KotlinExtension,KotlinGradleExtension
public abstract class BaseKotlinExtension extends FormatExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBaseKotlinExtension.DiktatConfigclassBaseKotlinExtension.KtfmtConfigclassBaseKotlinExtension.KtlintConfig-
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 Modifier Constructor Description protectedBaseKotlinExtension(SpotlessExtension spotless)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BaseKotlinExtension.DiktatConfigdiktat()BaseKotlinExtension.DiktatConfigdiktat(java.lang.String version)Adds the specified version of diktat.protected abstract booleanisScript()BaseKotlinExtension.KtfmtConfigktfmt()Uses the ktfmt jar to format source code.BaseKotlinExtension.KtfmtConfigktfmt(java.lang.String version)Uses the given version of ktfmt and applies the dropbox style option to format source code.BaseKotlinExtension.KtlintConfigktlint()BaseKotlinExtension.KtlintConfigktlint(java.lang.String version)Adds the specified version of ktlint.-
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, setupTask, target, targetExclude, targetExcludeIfContentContains, targetExcludeIfContentContainsRegex, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
-
-
-
Constructor Detail
-
BaseKotlinExtension
protected BaseKotlinExtension(SpotlessExtension spotless)
-
-
Method Detail
-
diktat
public BaseKotlinExtension.DiktatConfig diktat()
-
diktat
public BaseKotlinExtension.DiktatConfig diktat(java.lang.String version)
Adds the specified version of diktat.
-
ktlint
public BaseKotlinExtension.KtlintConfig ktlint() throws java.io.IOException
- Throws:
java.io.IOException
-
ktlint
public BaseKotlinExtension.KtlintConfig ktlint(java.lang.String version) throws java.io.IOException
Adds the specified version of ktlint.- Throws:
java.io.IOException
-
ktfmt
public BaseKotlinExtension.KtfmtConfig ktfmt()
Uses the ktfmt jar to format source code.
-
ktfmt
public BaseKotlinExtension.KtfmtConfig ktfmt(java.lang.String version)
Uses the given version of ktfmt and applies the dropbox style option to format source code.
-
isScript
protected abstract boolean isScript()
-
-