linting

Posts tagged with #linting
Total: 1

yamllint error: "invalid config: ignore should contain file patterns"

Notes | 2023-01-12 (updated 2025-10-25) | 1 min read
#linting #yaml #yamllint

Setting up a new repository for YAML linting today I was running in a bit of an issue with yamllint.

I was using a YAML list to specify ingores, as mentioned in the documentation:

ignore:
  - "*.dont-lint-me.yaml"
  - "/bin/"
  - "!/bin/*.lint-me-anyway.yaml"

This however did not work with the above mentioned error message. After a lot of debugging I found that they released a new version recently which introduced this feature.

My solution was to update my locally build container image to the latest version, as of writing 1.29.0, in which this feature is introduced.

Read more…