Fence

mill.javalib.spotless.Format.Fence
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