google / google/jsonnet

Formatter alignment of function closing parenthesis unexpected

Open
#864 1 comment 5 reactions 0 assignees View on GitHub
bug formatter
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

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

myfunc()
```

jsonnetfmt converts this to:
```jsonnet
local myfunc(
name='foo',
) = {
name: name,
};

myfunc()
```

Why did it add the indentation before the close parenthesis?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.