CustomFormat

mill.javalib.spotless.Format.CustomFormat
case class CustomFormat(className: String, classPath: Seq[PathRef]) extends Step

A custom formatting step. This can only be defined in a Mill module and not in the .spotless-formats.json.

Value parameters

className

The class implementing the com.diffplug.spotless.FormatterStep. Must have a default constructor that is used to instantiate the formatter.

classPath

The classpath of this formatting step, and where the className lives. These classpath will be loaded by the Spotless formatting, with the Spotless classes already defined. So, only libraries of the actual formatter implementation is required.

Attributes

Source
Format.scala
Graph
Supertypes
trait Serializable
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]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala