package rewrite
- Alphabetic
- Public
- Protected
Type Members
- class AvoidInfix extends RewriteSession
- class ExpandImportSelectors extends RewriteSession
- sealed abstract class Patch extends AnyRef
- class PreferCurlyFors extends RewriteSession
Replaces multi generator For / ForYield Expression parens and semi-colons with braces and new-lines.
Replaces multi generator For / ForYield Expression parens and semi-colons with braces and new-lines.
For example,
for(a <- as; b <- bs if b > 2) yield (a, b)
becomes,
for { a <- as b <- bs if b > 2 } yield (a, b)
- class RedundantBraces extends RewriteSession
Removes/adds curly braces where desired.
- class RedundantParens extends RewriteSession
- abstract class Rewrite extends AnyRef
- case class RewriteCtx(style: ScalafmtConfig, tree: Tree) extends Product with Serializable
- abstract class RewriteSession extends AnyRef
- class RewriteTrailingCommas extends RewriteSession
- sealed abstract class SortImports extends RewriteSession
Sorts imports inside curly braces.
Sorts imports inside curly braces.
For example
import a.{c, b}
into
import a.{b, c}
- class SortModifiers extends RewriteSession
- abstract class TokenPatch extends TreePatch
- abstract class TreePatch extends Patch
Value Members
- object AsciiSortImports extends Rewrite
Sort imports using the traditional ASCII sorting
Sort imports using the traditional ASCII sorting
See: http://support.ecisolutions.com/doc-ddms/help/reportsmenu/ascii_sort_order_chart.htm
- object AvoidInfix extends Rewrite
- object ExpandImportSelectors extends Rewrite
- object Patch
- object PreferCurlyFors extends Rewrite
- object RedundantBraces extends Rewrite
- object RedundantParens extends Rewrite
- object Rewrite
- object RewriteCtx extends Serializable
- object RewriteTrailingCommas extends Rewrite
- object SortImports extends Rewrite
Sort imports with symbols at the beginning, followed by lowercase and finally uppercase
- object SortModifiers extends Rewrite
- object TokenPatch