Package

org.scalafmt

rewrite

Permalink

package rewrite

Visibility
  1. Public
  2. All

Type Members

  1. class AvoidInfix extends RewriteSession

    Permalink
  2. class ExpandImportSelectors extends RewriteSession

    Permalink
  3. sealed abstract class Patch extends AnyRef

    Permalink
  4. class PreferCurlyFors extends RewriteSession

    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)

  5. class RedundantBraces extends RewriteSession

    Permalink

    Removes/adds curly braces where desired.

  6. class RedundantParens extends RewriteSession

    Permalink
  7. abstract class Rewrite extends AnyRef

    Permalink
  8. case class RewriteCtx(style: ScalafmtConfig, tree: Tree) extends Product with Serializable

    Permalink
  9. abstract class RewriteSession extends AnyRef

    Permalink
  10. class RewriteTrailingCommas extends RewriteSession

    Permalink
  11. sealed abstract class SortImports extends RewriteSession

    Permalink

    Sorts imports inside curly braces.

    Sorts imports inside curly braces.

    For example

    import a.{c, b}

    into

    import a.{b, c}

  12. class SortModifiers extends RewriteSession

    Permalink
  13. abstract class TokenPatch extends TreePatch

    Permalink
  14. abstract class TreePatch extends Patch

    Permalink

Value Members

  1. object AsciiSortImports extends Rewrite

    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

    Permalink
  3. object ExpandImportSelectors extends Rewrite

    Permalink
  4. object Patch

    Permalink
  5. object PreferCurlyFors extends Rewrite

    Permalink
  6. object RedundantBraces extends Rewrite

    Permalink
  7. object RedundantParens extends Rewrite

    Permalink
  8. object Rewrite

    Permalink
  9. object RewriteCtx extends Serializable

    Permalink
  10. object RewriteTrailingCommas extends Rewrite

    Permalink
  11. object SortImports extends Rewrite

    Permalink

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

  12. object SortModifiers extends Rewrite

    Permalink
  13. object TokenPatch

    Permalink

Ungrouped