google / yamlfmt

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple fields for formatter config can mess up default values

braydonk opened this issue · comments

If the basic formatter is configured like so:

formatter:
  include_document_start: true

The default value of 2 for Indent is lost, and the indentation will end up being the yaml.v3 default of 4.

I was considering making a patch release for this, but the workaround is pretty easy; simply include the indent in the config. Will add to v0.3.0