YAMLlint is a linter for YAML files that checks both for syntax validity and cosmetic problems like line length, trailing spaces, indentation, etc.

Configuration

Enable YAMLlint

LocationReview > Tools > Enable YAMLlint
Defaulttrue
YAMLlint is a linter for YAML files.

Features

YAMLlint performs several checks:

Syntax checks

  • YAML validity
  • Document structure

Cosmetic checks

  • Line length limits
  • Trailing whitespace
  • Indentation consistency
  • Empty lines
  • Comments formatting

Configuration File

YAMLlint can be configured using a .yamllint.yml or .yamllint.yaml configuration file in your repository root. The configuration file allows you to:
  • Enable/disable specific rules
  • Customize rule parameters
  • Ignore certain files or directories