google / google/yamlfmt

Last list item if commented will be indented two spaces after formatting

Open
#112 3 comments 1 reaction 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

Originally posted here: https://github.com/google/yamlfmt/issues/74#issuecomment-1505882709

input yaml:
```
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.2
hooks:
# - id: infracost_breakdown
- id: terraform_fmt
# - id: terraform_providers_lock
- id: terraform_validate
# - id: terrascan
```
output yaml:
```
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.2
hooks:
# - id: infracost_breakdown
- id: terraform_fmt
# - id: terraform_providers_lock
- id: terraform_validate
# - id: terrascan <-- two leading spaces
```

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.