Skip to content

unexpected changes in 3.8.4 #4717

@mr-git

Description

@mr-git

Required: Configuration

Please paste the smallest possible set of .scalafmt.conf
configuration parameters that reproduces the problem:

version = 3.8.4
...

Steps

Given code like this:

case class X(
  field: Int
)

Problem

Scalafmt formats code like this:

case class X(
    field: Int
)

There are extra 2 spaces added before field: Int

Expectation

I would like the formatted output to look like this:

case class X(
  field: Int
)

Workaround

Have to add extra config:

indent.defnSite = 2

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