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 Serializabletrait Serializabletrait Producttrait Equalstrait Stepclass Objecttrait Matchableclass Any
Members list
In this article