Skip to content

yaml linter #308

@ericLemanissier

Description

@ericLemanissier

We should consider linting conandata.yml and config.yml files, for example using yamllint
Example of case where it would have save some non negligible debugging time: conan-io/conan-center-index@61eb407#diff-c72439ef9b3281fe119686121ba38bb839dc40459798c2641142eb4135f15f61R16

exemple of execution with yamllint:
test.yml:

patches:
  a
  b
patches:
  c
$ yamllint --no-warnings test.yml
test.yml
  4:1       error    duplication of key "patches" 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