Skip to content

Insert line breaks between Multiple Parameter Lists #73

@gbasler

Description

@gbasler

Unfortunately this function

  def mergeMapsCombiningValueMaps[A, B, C](collisionFunc: (C, C) => C)
                                          (m1: Map[A, Map[Seq[B], C]], m2: Map[A, Map[Seq[B], C]]): Map[A, Map[Seq[B], C]] = {
    mergeMaps(m1, m2)((m11, m22) => mergeMaps(m11, m22)(collisionFunc))
  }

gets reformatted as:

  def mergeMapsCombiningValueMaps[A, B, C](collisionFunc: (C, C) => C)(m1: Map[A, Map[Seq[B], C]], m2: Map[A, Map[Seq[B], C]]): Map[A, Map[Seq[B], C]] = {
    mergeMaps(m1, m2)((m11, m22) => mergeMaps(m11, m22)(collisionFunc))
  }

I would prefer keeping the line breaks as they were because then this monster takes at least a bit less space...
A configuration option that a) either always inserts line breaks or b) inserts line breaks if the line is longer than a specific lenght would be handy in this case.

http://docs.scala-lang.org/style/declarations.html#multiple_parameter_lists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions