Skip to content

yaml indentless arrays detection (for Kubernetes) #105

Description

@j-krl

Sleuth often gets "indentless arrays" formatting of yaml wrong. This is a pretty standard formatting option with Kubernetes manifests. This is a pretty common example of yaml syntax that Sleuth detects as 4 but should be 2:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- test.yml
- test-2.yml

- pairs:
    my-key: value
    another-key: test
  includeTemplates: true

Personally I think it's pretty stupid formatting but I didn't choose it 🤷‍♂️

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions