google / google/yamlfmt

FR: Add config option to enable spaces around braces (curly brackets)

Open
#184 4 comments 2 reactions 0 assignees View on GitHub
yaml_v3_problem
Dominant language
Go
Stars
1.8k
Forks
75
PR merge metrics
No merged PRs in 30d

Description

For example, instead of the current behaviour:

```
extra_vars: {ansible_python_interpreter: /usr/bin/python2.7}
```

Allow the following one via a config setting:

```
extra_vars: { ansible_python_interpreter: /usr/bin/python2.7 }
```

Precedence: [Rubocop](https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceInsideBlockBraces), [Prettier](https://prettier.io/docs/en/options.html#bracket-spacing)

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.