google / yamlfmt

An extensible command line tool or library to format yaml files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compact_sequence_indent not honored

bluebrown opened this issue · comments

Hi, I have seen some configs around the web using compact_sequence_indent. For example, in this issue : #27.

However, I cannot find this field in the basic formatter config, in the go code. Using it in my file also does not keep the sequence indentation compact.

Has this been removed?

Hi, thanks for making an issue!

I believe the confusion here is that in the issue you are referring to, the person had a yamlfmt fork. This pulled in a yaml library that actually had support for that field and added it to yamlfmt in their fork. Mainline yamlfmt does not have support for this at the moment. That effort is being tracked in #87. I'll close this issue for now in favour of tracking the effort there.