Skip to content

Formatter alignment of function closing parenthesis unexpected #864

Open
@james-callahan

Description

@james-callahan

consider:

local myfunc(
  name = 'foo',
) = {
  name: name
};

myfunc()

jsonnetfmt converts this to:

local myfunc(
  name='foo',
      ) = {
  name: name,
};

myfunc()

Why did it add the indentation before the close parenthesis?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions