Package

org.scalafmt

rewrite

Permalink

package rewrite

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Patch extends AnyRef

    Permalink
  2. abstract class Rewrite extends AnyRef

    Permalink
  3. case class RewriteCtx(style: ScalafmtConfig, tokenTraverser: TokenTraverser, matchingParens: Map[TokenHash, scala.meta.Token]) extends Product with Serializable

    Permalink
  4. sealed trait SortImports extends Rewrite

    Permalink

    Sorts imports inside curly braces.

    Sorts imports inside curly braces.

    For example

    import a.{c, b}

    into

    import a.{b, c}

  5. abstract class TokenPatch extends TreePatch

    Permalink
  6. abstract class TreePatch extends Patch

    Permalink

Value Members

  1. object AsciiSortImports extends Rewrite with SortImports with Product with Serializable

    Permalink

    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

  2. object AvoidInfix extends Rewrite with Product with Serializable

    Permalink
  3. object ExpandImportSelectors extends Rewrite with Product with Serializable

    Permalink
  4. object Patch

    Permalink
  5. object PreferCurlyFors extends Rewrite with Product with Serializable

    Permalink

    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)

  6. object RedundantBraces extends Rewrite with Product with Serializable

    Permalink

    Removes/adds curly braces where desired.

  7. object RedundantParens extends Rewrite with Product with Serializable

    Permalink
  8. object Rewrite

    Permalink
  9. object SortImports extends Rewrite with SortImports with Product with Serializable

    Permalink

    Sort imports with symbols at the beginning, followed by lowercase and finally uppercase

  10. object SortModifiers extends Rewrite

    Permalink
  11. object TokenPatch

    Permalink

Ungrouped