object Scalafmt
WARNING. This API is discouraged when integrating with Scalafmt from a build tool
or editor plugin. It is recommended to use the scalafmt-dynamic
module instead.
- Alphabetic
- By Inheritance
- Scalafmt
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def configForSbt(config: ScalafmtConfig): ScalafmtConfig
-
def
configWithDialect(config: ScalafmtConfig, dialect: Dialect): ScalafmtConfig
Utility method to change dialect on ScalafmtConfig.
Utility method to change dialect on ScalafmtConfig.
Binary compatibility is guaranteed between releases, unlike with ScalafmtConfig.copy.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def format(code: String, style: ScalafmtConfig = ScalafmtConfig.default, range: Set[Range] = Set.empty[Range]): Formatted
-
def
format(code: String, style: ScalafmtConfig, range: Set[Range], filename: String): Formatted
Format Scala code using scalafmt.
Format Scala code using scalafmt.
WARNING. This API is discouraged when integrating with Scalafmt from a build tool or editor plugin. It is recommended to use the
scalafmt-dynamic
module instead.- code
Code string to format.
- style
Configuration for formatting output.
- range
EXPERIMENTAL. Format a subset of lines.
- returns
Formatted.Success if successful, Formatted.Failure otherwise. If you are OK with throwing exceptions, use Formatted.Success.get to get back a string.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseHoconConfig(configString: String): Configured[ScalafmtConfig]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )