Fence

mill.scalalib.spotless.Format.Fence
@Scaladoc(value = "/**\n * When `preserve` is set, `steps` are applied outside matching blocks, thus preserving the\n * formatting inside a matching block. Otherwise, `steps` are applied inside matching blocks.\n * @param name name of this step\n * @param regex matcher for a block\n * - `[regex]`: regular expression\n * - `[open,close]`: open and close markers\n * @see\n * - [[https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/generic/FenceStep.java FenceStep]]\n * - [[https://github.com/diffplug/spotless/tree/main/plugin-gradle#spotlessoff-and-spotlesson Toggle]]\n * - [[https://github.com/diffplug/spotless/tree/main/plugin-gradle#inception-languages-within-languages-within Inception]]\n */")
case class Fence(name: String, regex: Seq[String], preserve: Boolean, steps: Seq[Step]) extends Step

When preserve is set, steps are applied outside matching blocks, thus preserving the formatting inside a matching block. Otherwise, steps are applied inside matching blocks.

Value parameters

name

name of this step

regex

matcher for a block - [regex]: regular expression - [open,close]: open and close markers

Attributes

See also
Source
Format.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Step
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product