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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classfinal classfinal classfinal classNested 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 TypeMethodDescriptiondiktat()Adds the specified version of diktat.protected abstract booleanisScript()ktfmt()Uses the ktfmt jar to format source code.Uses the given version of ktfmt and applies the dropbox style option to format source code.ktlint()Adds the specified version of ktlint.Formats@TableTestannotation tables using tabletest-formatter.tableTestFormatter(String version) Formats@TableTestannotation tables using the given version of tabletest-formatter.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, forbidRegex, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, idea, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, leadingSpacesToTabs, leadingSpacesToTabs, leadingTabsToSpaces, leadingTabsToSpaces, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, p2Provisioner, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, setupTask, suppressLintsFor, target, targetExclude, targetExcludeIfContentContains, targetExcludeIfContentContainsRegex, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
Constructor Details
-
BaseKotlinExtension
-
-
Method Details
-
diktat
-
diktat
Adds the specified version of diktat. -
ktlint
- Throws:
IOException
-
ktlint
Adds the specified version of ktlint.- Throws:
IOException
-
ktfmt
Uses the ktfmt jar to format source code. -
ktfmt
Uses the given version of ktfmt and applies the dropbox style option to format source code. -
tableTestFormatter
Formats@TableTestannotation tables using tabletest-formatter. -
tableTestFormatter
Formats@TableTestannotation tables using the given version of tabletest-formatter. -
isScript
protected abstract boolean isScript()
-