Class/Object

org.scalafmt

ScalafmtStyle

Related Docs: object ScalafmtStyle | package scalafmt

Permalink

case class ScalafmtStyle(maxColumn: Int, scalaDocs: Boolean, alignStripMarginStrings: Boolean, binPackArguments: Boolean, binPackParameters: Boolean, configStyleArguments: Boolean, binPackDotChains: Boolean, noNewlinesBeforeJsNative: Boolean, continuationIndentCallSite: Int, continuationIndentDefnSite: Int, alignTokens: Set[AlignToken], spacesInImportCurlyBrackets: Boolean, allowNewlineBeforeColonInMassiveReturnTypes: Boolean, binPackParentConstructors: Boolean, alignByArrowEnumeratorGenerator: Boolean, alignByIfWhileOpenParen: Boolean) extends Product with Serializable

Configuration options for scalafmt.

maxColumn

Column limit, any formatting exceeding this field is penalized heavily.

scalaDocs

Use scaladoc style docstring, otherwise use javadoc style.

alignStripMarginStrings

If true, the margin character | is treated as the new indentation in multiline strings ending with .stripMargin.

binPackArguments

If true, will fit as many arguments on each line, only breaking at commas. If false, a function call's arguments will either be all on the same line or will have one line each.

binPackParameters

Same as binPackArguments, except for def/class definition parameters.

configStyleArguments

Call-sites where there is a newline after opening ( and newline before closing ). If true, preserves the newlines and keeps one line per argument.

binPackDotChains

If true, will fit as many arguments on each line, only breaking at dots. If false, a either all selects go on the same line or will have one line each.

noNewlinesBeforeJsNative

If true, a newline will never be placed in front of js.native.

continuationIndentCallSite

Indent width for line continuation at call site.

continuationIndentDefnSite

Indent width for line continuation at definition/declaration site.

allowNewlineBeforeColonInMassiveReturnTypes

If true, scalafmt may choose to put a newline before colon : at defs.

binPackParentConstructors

Parent constructors are C and D in "class A extends B with C and D". If true, scalafmt will fit as many parent constructors on a single line. If false, each parent constructor gets its own line.

alignByArrowEnumeratorGenerator

If true, aligns by <- in for comprehensions.

alignByIfWhileOpenParen

If true, aligns by ( in if/while/for. If false, indents by continuationIndentCallSite.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalafmtStyle
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalafmtStyle(maxColumn: Int, scalaDocs: Boolean, alignStripMarginStrings: Boolean, binPackArguments: Boolean, binPackParameters: Boolean, configStyleArguments: Boolean, binPackDotChains: Boolean, noNewlinesBeforeJsNative: Boolean, continuationIndentCallSite: Int, continuationIndentDefnSite: Int, alignTokens: Set[AlignToken], spacesInImportCurlyBrackets: Boolean, allowNewlineBeforeColonInMassiveReturnTypes: Boolean, binPackParentConstructors: Boolean, alignByArrowEnumeratorGenerator: Boolean, alignByIfWhileOpenParen: Boolean)

    Permalink

    maxColumn

    Column limit, any formatting exceeding this field is penalized heavily.

    scalaDocs

    Use scaladoc style docstring, otherwise use javadoc style.

    alignStripMarginStrings

    If true, the margin character | is treated as the new indentation in multiline strings ending with .stripMargin.

    binPackArguments

    If true, will fit as many arguments on each line, only breaking at commas. If false, a function call's arguments will either be all on the same line or will have one line each.

    binPackParameters

    Same as binPackArguments, except for def/class definition parameters.

    configStyleArguments

    Call-sites where there is a newline after opening ( and newline before closing ). If true, preserves the newlines and keeps one line per argument.

    binPackDotChains

    If true, will fit as many arguments on each line, only breaking at dots. If false, a either all selects go on the same line or will have one line each.

    noNewlinesBeforeJsNative

    If true, a newline will never be placed in front of js.native.

    continuationIndentCallSite

    Indent width for line continuation at call site.

    continuationIndentDefnSite

    Indent width for line continuation at definition/declaration site.

    allowNewlineBeforeColonInMassiveReturnTypes

    If true, scalafmt may choose to put a newline before colon : at defs.

    binPackParentConstructors

    Parent constructors are C and D in "class A extends B with C and D". If true, scalafmt will fit as many parent constructors on a single line. If false, each parent constructor gets its own line.

    alignByArrowEnumeratorGenerator

    If true, aligns by <- in for comprehensions.

    alignByIfWhileOpenParen

    If true, aligns by ( in if/while/for. If false, indents by continuationIndentCallSite.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val alignByArrowEnumeratorGenerator: Boolean

    Permalink

    If true, aligns by <- in for comprehensions.

  5. val alignByIfWhileOpenParen: Boolean

    Permalink

    If true, aligns by ( in if/while/for.

    If true, aligns by ( in if/while/for. If false, indents by continuationIndentCallSite.

  6. lazy val alignMap: Map[String, Regex]

    Permalink
  7. val alignStripMarginStrings: Boolean

    Permalink

    If true, the margin character | is treated as the new indentation in multiline strings ending with .stripMargin.

  8. val alignTokens: Set[AlignToken]

    Permalink
  9. val allowNewlineBeforeColonInMassiveReturnTypes: Boolean

    Permalink

    If true, scalafmt may choose to put a newline before colon : at defs.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. val binPackArguments: Boolean

    Permalink

    If true, will fit as many arguments on each line, only breaking at commas.

    If true, will fit as many arguments on each line, only breaking at commas. If false, a function call's arguments will either be all on the same line or will have one line each.

  12. val binPackDotChains: Boolean

    Permalink

    If true, will fit as many arguments on each line, only breaking at dots.

    If true, will fit as many arguments on each line, only breaking at dots. If false, a either all selects go on the same line or will have one line each.

  13. val binPackParameters: Boolean

    Permalink

    Same as binPackArguments, except for def/class definition parameters.

  14. val binPackParentConstructors: Boolean

    Permalink

    Parent constructors are C and D in "class A extends B with C and D".

    Parent constructors are C and D in "class A extends B with C and D". If true, scalafmt will fit as many parent constructors on a single line. If false, each parent constructor gets its own line.

  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val configStyleArguments: Boolean

    Permalink

    Call-sites where there is a newline after opening ( and newline before closing ).

    Call-sites where there is a newline after opening ( and newline before closing ). If true, preserves the newlines and keeps one line per argument.

  17. val continuationIndentCallSite: Int

    Permalink

    Indent width for line continuation at call site.

  18. val continuationIndentDefnSite: Int

    Permalink

    Indent width for line continuation at definition/declaration site.

  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val maxColumn: Int

    Permalink

    Column limit, any formatting exceeding this field is penalized heavily.

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. val noNewlinesBeforeJsNative: Boolean

    Permalink

    If true, a newline will never be placed in front of js.native.

  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. val scalaDocs: Boolean

    Permalink

    Use scaladoc style docstring, otherwise use javadoc style.

  29. val spacesInImportCurlyBrackets: Boolean

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped