yamllint

Posts tagged with #yamllint
Total: 2

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…

yamllint: Ignore exisiting errors

Notes | 2022-01-14 (updated 2025-10-25) | 1 min read
#automation #cicd #yaml #yamllint

When adding yamllint to an existing project it can be hard to fix all the errors at once.

I wrote a simple script to create a rules block that simply ignores all rules that currently trigger for a file. This works by generating a rules block ignoring paths.

Read more…