Class/Object

org.scalafmt.config

Spaces

Related Docs: object Spaces | package config

Permalink

case class Spaces(beforeContextBoundColon: SpaceBeforeContextBound = Never, afterTripleEquals: Boolean = false, inImportCurlyBraces: Boolean = false, inParentheses: Boolean = false, neverAroundInfixTypes: Seq[String] = Nil, afterKeywordBeforeParen: Boolean = true, inByNameTypes: Boolean = true, afterSymbolicDefs: Boolean = false) extends Product with Serializable

beforeContextBoundColon

formats [A: T] as [A : T]

afterTripleEquals

If true, formats ===( as === (

inImportCurlyBraces

If true, formats import a.b.{ c, d }. If false, formats import a.b.{c, d}.

inParentheses

If true, formats foo(a, b) as foo( a, b ).

neverAroundInfixTypes

If ["##"] is specified as operator then formats Generic[Foo] ## Repr as Generic[Foo]##Repr.

afterKeywordBeforeParen

if false, does not add a space between a keyword and a parenthesis. For example: if(a) println("HELLO!") while(a) println("HELLO!")

inByNameTypes

If false, removes space in by-name parameter. def foo(a: =>A)

afterSymbolicDefs

If true, adds a single space after an operator method For example: def <=> [T](that: T): Boolean

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Spaces
  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 Spaces(beforeContextBoundColon: SpaceBeforeContextBound = Never, afterTripleEquals: Boolean = false, inImportCurlyBraces: Boolean = false, inParentheses: Boolean = false, neverAroundInfixTypes: Seq[String] = Nil, afterKeywordBeforeParen: Boolean = true, inByNameTypes: Boolean = true, afterSymbolicDefs: Boolean = false)

    Permalink

    beforeContextBoundColon

    formats [A: T] as [A : T]

    afterTripleEquals

    If true, formats ===( as === (

    inImportCurlyBraces

    If true, formats import a.b.{ c, d }. If false, formats import a.b.{c, d}.

    inParentheses

    If true, formats foo(a, b) as foo( a, b ).

    neverAroundInfixTypes

    If ["##"] is specified as operator then formats Generic[Foo] ## Repr as Generic[Foo]##Repr.

    afterKeywordBeforeParen

    if false, does not add a space between a keyword and a parenthesis. For example: if(a) println("HELLO!") while(a) println("HELLO!")

    inByNameTypes

    If false, removes space in by-name parameter. def foo(a: =>A)

    afterSymbolicDefs

    If true, adds a single space after an operator method For example: def <=> [T](that: T): Boolean

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 afterKeywordBeforeParen: Boolean

    Permalink

    if false, does not add a space between a keyword and a parenthesis.

    if false, does not add a space between a keyword and a parenthesis. For example: if(a) println("HELLO!") while(a) println("HELLO!")

  5. val afterSymbolicDefs: Boolean

    Permalink

    If true, adds a single space after an operator method For example: def <=> [T](that: T): Boolean

  6. val afterTripleEquals: Boolean

    Permalink

    If true, formats ===( as === (

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val beforeContextBoundColon: SpaceBeforeContextBound

    Permalink

    formats [A: T] as [A : T]

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. val inByNameTypes: Boolean

    Permalink

    If false, removes space in by-name parameter.

    If false, removes space in by-name parameter. def foo(a: =>A)

  14. val inImportCurlyBraces: Boolean

    Permalink

    If true, formats import a.b.{ c, d }.

    If true, formats import a.b.{ c, d }. If false, formats import a.b.{c, d}.

  15. val inParentheses: Boolean

    Permalink

    If true, formats foo(a, b) as foo( a, b ).

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. val neverAroundInfixTypes: Seq[String]

    Permalink

    If ["##"] is specified as operator then formats Generic[Foo] ## Repr as Generic[Foo]##Repr.

  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. implicit val reader: ConfDecoder[Spaces]

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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