Skip to content

[YAML] indentation style for sequence in mapping #4723

@ikatyang

Description

@ikatyang

I'd like to avoid things like #4251 in the future, let's see how people think about it. We'll decide which style to use before releasing 1.14 based on the 👍/👎 and change the style if one's vote (👍s - 👎s) is greater than another one about 30%, otherwise stay as-is (i.e., do indent).

do indent do not indent
better readability no unnecessary indentation
a:
  - b
  - c
before_script:
  - command
  - command
  - command
stages:
  - test
  - test
  - test
other:
  - other
  - other
  - other
a:
- b
- c
before_script:
- command
- command
- command
stages:
- test
- test
- test
other:
- other
- other
- other

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:yamlIssues affecting YAMLlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions