Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: linter for checking yaml files for layout #3

Open
yazug opened this issue Jul 24, 2019 · 1 comment
Open

RFE: linter for checking yaml files for layout #3

yazug opened this issue Jul 24, 2019 · 1 comment

Comments

@yazug
Copy link

yazug commented Jul 24, 2019

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)
@yazug
Copy link
Author

yazug commented Jul 24, 2019

I wonder if strictyaml might be useful for distroinfo to enforce some schema/linting in the input data

https://pypi.org/project/strictyaml/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant