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
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CliOptions
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addFile(file: Path): CliOptions
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val assumeFilename: String
  7. val check: Boolean
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val common: CommonOptions
  10. 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.conf on the working directory.
    returns

    A path to a configuration file

  11. val configStr: Option[String]
  12. val customExcludes: Seq[String]
  13. lazy val customFilesOpt: Option[Seq[AbsoluteFile]]
  14. def cwd: AbsoluteFile
  15. val debug: Boolean
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. val error: Boolean
  18. def excludeFilterRegexp: Regex
  19. lazy val fileFetchMode: FileFetchMode
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. lazy val gitOps: GitOps
  22. val gitOpsConstructor: Factory
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val mode: Option[FileFetchMode]
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. val noStdErr: Boolean
  27. val nonInteractive: Boolean
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def productElementNames: Iterator[String]
    Definition Classes
    Product
  31. val quiet: Boolean
  32. val range: Set[Range]
  33. val respectProjectFilters: Boolean
  34. 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-str is specified, this will parse the configuration string specified by --config-str. Otherwise, a contents of configuration file specified by configPath will be parsed.

    If --config-str is not specified and configuration file is missing, this will return the default configuration

  35. val stdIn: Boolean
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. def withFiles(files: Seq[Path]): CliOptions
  41. val writeMode: WriteMode
  42. val writeModeOpt: Option[WriteMode]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped