public class KotlinExtension extends FormatExtension implements HasBuiltinDelimiterForLicense
| Modifier and Type | Class and Description |
|---|---|
class |
KotlinExtension.KotlinFormatExtension |
steps, target| Constructor and Description |
|---|
KotlinExtension(SpotlessExtension rootExtension) |
| Modifier and Type | Method and Description |
|---|---|
KotlinExtension.KotlinFormatExtension |
ktlint() |
KotlinExtension.KotlinFormatExtension |
ktlint(String version)
Adds the specified version of ktlint.
|
com.diffplug.gradle.spotless.FormatExtension.LicenseHeaderConfig |
licenseHeader(String licenseHeader) |
com.diffplug.gradle.spotless.FormatExtension.LicenseHeaderConfig |
licenseHeaderFile(Object licenseHeaderFile) |
protected void |
setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the kotlin files.
|
addStep, bumpThisNumberIfACustomStepChanges, clearSteps, custom, custom, customLazy, customLazyGroovy, encoding, endWithNewline, getEncoding, getExistingStep, getLineEndings, getProject, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, paddedCell, paddedCell, parseTarget, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, target, trimTrailingWhitespacepublic KotlinExtension(SpotlessExtension rootExtension)
public com.diffplug.gradle.spotless.FormatExtension.LicenseHeaderConfig licenseHeader(String licenseHeader)
licenseHeader in interface HasBuiltinDelimiterForLicenselicenseHeader - Content that should be at the top of every file.public com.diffplug.gradle.spotless.FormatExtension.LicenseHeaderConfig licenseHeaderFile(Object licenseHeaderFile)
licenseHeaderFile in interface HasBuiltinDelimiterForLicenselicenseHeaderFile - Content that should be at the top of every file.public KotlinExtension.KotlinFormatExtension ktlint(String version)
Adds the specified version of ktlint.
public KotlinExtension.KotlinFormatExtension ktlint()
protected void setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the kotlin files.
setupTask in class FormatExtension