Skip to content

Yamllint

Yamllint is a linter for YAML files.

yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces or indentation.

You can use it both with:

  • The Vim through the ALE plugin.

  • Pre-commit:

    File: .pre-commit-config.yaml

    - repo: https://github.com/adrienverge/yamllint
      rev: v1.21.0
      hooks:
        - id: yamllint
    

References


Last update: 2023-03-23