Skip to content

RFE: linter for checking yaml files for layout #3

@yazug

Description

@yazug

ran into issue where packages.yml had duplicated packages: entry and a bad branch url
Looking into ways we might be able to easily check/detect issues in CI Check job.

Sample yaml:

============
---
packages:
  - project: foo
packages:
  - project: bar
  - project: blah
============

yamllint does catch the first issue

$ yamllint test.yaml
test.yaml
  5:1       error    duplication of key "packages" in mapping  (key-duplicates)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions