case class IndentOperator(topLevelOnly: Boolean = true, include: String = ".*", exclude: String = "^(&&|\\|\\|)$") extends Decodable[IndentOperator] with Product with Serializable
- topLevelOnly
If true, allows no indentation on infix operators in top-level functions only. For example,
// top-level, flag doesn't apply a && b // true function( a && b ) // false function( a && b )
- include
Regexp for which infix operators should indent by 2 spaces. For example, .*= produces this output
a && b a += b
- exclude
Regexp for which infix operators should not indent by 2 spaces. For example, when include is .* and exclude is &&
a && b a || b a += b
- See also
For context: https://github.com/scala-js/scala-js/blob/master/CODINGSTYLE.md#long-expressions-with-binary-operators
- Alphabetic
- By Inheritance
- IndentOperator
- Serializable
- Product
- Equals
- Decodable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IndentOperator(topLevelOnly: Boolean = true, include: String = ".*", exclude: String = "^(&&|\\|\\|)$")
- topLevelOnly
If true, allows no indentation on infix operators in top-level functions only. For example,
// top-level, flag doesn't apply a && b // true function( a && b ) // false function( a && b )
- include
Regexp for which infix operators should indent by 2 spaces. For example, .*= produces this output
a && b a += b
- exclude
Regexp for which infix operators should not indent by 2 spaces. For example, when include is .* and exclude is &&
a && b a || b a += b
Type Members
- type T = IndentOperator
- Definition Classes
- Decodable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseDecoder: ConfDecoder[IndentOperator]
- Attributes
- protected[config]
- Definition Classes
- IndentOperator → Decodable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodePresets(conf: Conf, presets: PartialFunction[Conf, IndentOperator]): Option[Configured[(IndentOperator, Conf)]]
- Attributes
- protected
- Definition Classes
- Decodable
- implicit final def decoder(implicit presets: PartialFunction[Conf, IndentOperator]): ConfDecoder[IndentOperator]
- Definition Classes
- Decodable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exclude: String
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val include: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noindent(op: String): Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val topLevelOnly: Boolean
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()