case class CliOptions(config: Option[Path] = None, baseConfig: ScalafmtConfig = ScalafmtConfig.uncheckedDefault, configStr: Option[String] = None, range: Set[Range] = Set.empty[Range], customFiles: Seq[Path] = Nil, customExcludes: Seq[String] = Nil, respectProjectFilters: Boolean = false, nonInteractive: Boolean = false, mode: Option[FileFetchMode] = None, assumeFilename: String = "stdin.scala", common: CommonOptions = CommonOptions(), gitOpsConstructor: Factory = GitOps.FactoryImpl, writeModeOpt: Option[WriteMode] = None, debug: Boolean = false, quiet: Boolean = false, stdIn: Boolean = false, noStdErr: Boolean = false, error: Boolean = false, check: Boolean = false) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CliOptions
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CliOptions(config: Option[Path] = None, baseConfig: ScalafmtConfig = ScalafmtConfig.uncheckedDefault, configStr: Option[String] = None, range: Set[Range] = Set.empty[Range], customFiles: Seq[Path] = Nil, customExcludes: Seq[String] = Nil, respectProjectFilters: Boolean = false, nonInteractive: Boolean = false, mode: Option[FileFetchMode] = None, assumeFilename: String = "stdin.scala", common: CommonOptions = CommonOptions(), gitOpsConstructor: Factory = GitOps.FactoryImpl, writeModeOpt: Option[WriteMode] = None, debug: Boolean = false, quiet: Boolean = false, stdIn: Boolean = false, noStdErr: Boolean = false, error: Boolean = false, check: Boolean = false)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addFile(file: Path): CliOptions
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val assumeFilename: String
- val check: Boolean
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val common: CommonOptions
- def configPath: Path
- If --config-str is specified (and tempConfigPath is defined), this returns the path to a temporary file.
- If both tempConfigPath and config are None, this return the path to
.scalafmt.confon the working directory.
- returns
A path to a configuration file
- val configStr: Option[String]
- val customExcludes: Seq[String]
- lazy val customFilesOpt: Option[Seq[AbsoluteFile]]
- def cwd: AbsoluteFile
- val debug: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val error: Boolean
- def excludeFilterRegexp: Regex
- lazy val fileFetchMode: FileFetchMode
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val gitOps: GitOps
- val gitOpsConstructor: Factory
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mode: Option[FileFetchMode]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noStdErr: Boolean
- val nonInteractive: Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val quiet: Boolean
- val range: Set[Range]
- val respectProjectFilters: Boolean
- def scalafmtConfig: Configured[ScalafmtConfig]
Parse the scalafmt configuration and try to encode it to
ScalafmtConfig.Parse the scalafmt configuration and try to encode it to
ScalafmtConfig. If--config-stris specified, this will parse the configuration string specified by--config-str. Otherwise, a contents of configuration file specified byconfigPathwill be parsed.If
--config-stris not specified and configuration file is missing, this will return the default configuration - val stdIn: Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFiles(files: Seq[Path]): CliOptions
- val writeMode: WriteMode
- val writeModeOpt: Option[WriteMode]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated