Skip to content

Inconsistent indentation of comments in function parameter list #337

@rszyma

Description

@rszyma

Description

Putting a comment in-between arguments in a parameter list of a function, formats it at the same level of indentation as other parameters. However if a comment is put after all parameters of a function it's formatted with 1 level indentation less.

This applies to both line and multi-line comments.

Similar issue: #317.

Small example input

{
  # param1,
  param2,
  param3,
  # param4,
}:
{ }

Expected output

{
  # param1,
  param2,
  param3,
  # param4,
}:
{ }

Actual output

{
  # param1,
  param2,
  param3,
# param4,
}:
{ }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions