FmtUtil
scala.cli.commands.fmt.FmtUtil
object FmtUtil
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FmtUtil.type
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Scala211.typeobject Scala212.typeobject Scala212Source3.typeobject Scala213.typeobject Scala213Source3.typeobject Scala3.typeShow all
object ScalafmtDialect
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ScalafmtDialect.type
Value members
Concrete methods
def readVersionAndDialect(workspace: Path, options: FmtOptions, logger: Logger): (Option[String], Option[String], Option[Path])
Based on scalafmt comment. First we look for .scalafmt.conf file in the cwd
. If not found we go to the git root
and look there.
Based on scalafmt comment. First we look for .scalafmt.conf file in the cwd
. If not found we go to the git root
and look there.
Attributes
- Returns
-
path to found
.scalafmt.conf
file andversion
withdialect
read from it
def scalafmtConfigWithFields(previousConfigText: String, version: Option[String], runnerDialect: Option[ScalafmtDialect], fileOverride: Map[String, ScalafmtDialect]): String
Based on scalameta fmt config
Based on scalameta fmt config
Attributes
- Returns
-
Scalafmt configuration content based on previousConfigText with updated fields
In this article