public class KotlinExtension extends FormatExtension
steps, target| Constructor and Description |
|---|
KotlinExtension(SpotlessExtension rootExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
ktlint() |
void |
ktlint(String version)
Adds the specified version of ktlint.
|
void |
licenseHeader(String licenseHeader) |
void |
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 void licenseHeader(String licenseHeader)
public void licenseHeaderFile(Object licenseHeaderFile)
public void 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