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 */")
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
Members list
In this article