SpotlessWorkerImpl

mill.javalib.spotless.SpotlessWorkerImpl
class SpotlessWorkerImpl(cleaners: Cleaners, git: GitRatchet) extends SpotlessWorker

Attributes

Source
SpotlessWorkerImpl.scala
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(moduleDir: Path, globalExcludes: Seq[String], formats: Seq[Format], resolver: Resolver, ctx: TaskCtx)

Attributes

Source
SpotlessWorkerImpl.scala

Concrete methods

def close(): Unit

Attributes

Source
SpotlessWorkerImpl.scala
def format(check: Boolean)(using ctx: Log): Unit

Checks/fixes formatting in module files.

Checks/fixes formatting in module files.

Value parameters

check

If set, an error is raised on format errors. Otherwise, formatting is fixed.

Attributes

Source
SpotlessWorkerImpl.scala
def provision(using ctx: Log): Seq[PathRef]

Resolves and returns artifacts required for formatting.

Resolves and returns artifacts required for formatting.

Attributes

Source
SpotlessWorkerImpl.scala
def ratchet(check: Boolean, staged: Boolean, from: String, to: Option[String])(using ctx: Log & Workspace): Unit

Checks/fixes formatting in files that differ in 2 Git trees.

Checks/fixes formatting in files that differ in 2 Git trees.

Value parameters

check

If set, an error is raised on format errors. Otherwise, formatting is fixed.

from

Revision to compare against.

to

Revision to compare. When empty, - index tree is used, if staged is set - working tree is used, otherwise

Attributes

Source
SpotlessWorkerImpl.scala