public class ScalaExtension extends FormatExtension
Modifier and Type | Class and Description |
---|---|
class |
ScalaExtension.ScalaFmtConfig |
FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig
steps, target, targetExclude
Constructor and Description |
---|
ScalaExtension(SpotlessExtension spotless) |
Modifier and Type | Method and Description |
---|---|
ScalaExtension.ScalaFmtConfig |
scalafmt() |
ScalaExtension.ScalaFmtConfig |
scalafmt(String version) |
protected void |
setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the scala files.
|
addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, licenseHeader, licenseHeaderFile, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace
public ScalaExtension(SpotlessExtension spotless)
public ScalaExtension.ScalaFmtConfig scalafmt()
public ScalaExtension.ScalaFmtConfig scalafmt(String version)
protected void setupTask(SpotlessTask task)
If the user hasn’t specified the files yet, we’ll assume he/she means all of the scala files.
setupTask
in class FormatExtension