sspooky13/yaml-standards

bad check/fix multidimensional array

Closed this issue · 1 comments

Which version(s) is affected: all

Description
If you create multidimensional array without array key then checker/fixer don't work correctly

How to reproduce
e.g. this yaml

patchesJson6902:
-   target:
        group: extensions
        version: v1beta1
        kind: Ingress
        name: shopsys
    path: ./ingress-patch.yaml

checker/fixer want fix to this

patchesJson6902:
-   target:
        group: extensions
        version: v1beta1
        kind: Ingress
        name: shopsys
        path: ./ingress-patch.yaml

and it's incorrect.
See shopsys/shopsys#539 (comment) for better detail

fixed in last version