Navigation

  • index
  • modules |
  • next |
  • yamllint 1.32.0 documentation »

yamllint documentation¶

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, indentation, etc.

Screenshot¶

yamllint screenshot

Note

The default output format is inspired by eslint, a great linting tool for Javascript.

Table of contents¶

  • Quickstart
    • Installing yamllint
    • Running yamllint
  • Configuration
    • Default configuration
    • Extending the default configuration
    • Custom configuration without a config file
    • Errors and warnings
    • YAML files extensions
    • Ignoring paths
    • Setting the locale
  • Rules
    • anchors
    • braces
    • brackets
    • colons
    • commas
    • comments
    • comments-indentation
    • document-end
    • document-start
    • empty-lines
    • empty-values
    • float-values
    • hyphens
    • indentation
    • key-duplicates
    • key-ordering
    • line-length
    • new-line-at-end-of-file
    • new-lines
    • octal-values
    • quoted-strings
    • trailing-spaces
    • truthy
  • Disable with comments
    • Disabling checks for a specific line
    • Disabling checks for all (or part of) the file
    • Disabling all checks for a file
  • Development
  • Integration with text editors
    • Vim
    • Neovim
    • Emacs
    • Visual Studio Code
    • IntelliJ
    • Other text editors
  • Integration with other software
    • Integration with pre-commit
    • Integration with GitHub Actions
    • Integration with Arcanist

Table of Contents

  • yamllint documentation
    • Screenshot
    • Table of contents

Next topic

Quickstart

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • next |
  • yamllint 1.32.0 documentation »
© Copyright 2022, Adrien Vergé. Created using Sphinx 1.8.6.