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()
  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. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. lazy val gitOps: GitOps
  23. val gitOpsConstructor: Factory
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val mode: Option[FileFetchMode]
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. val noStdErr: Boolean
  28. val nonInteractive: Boolean
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. val quiet: Boolean
  33. val range: Set[Range]
  34. val respectProjectFilters: Boolean
  35. 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

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped