yamllint Plugin
Linter for YAML files with configurable rules.
Commands
Lint
yamllint lint run— Lint YAML filesyamllint lint format— Lint with specific output format
Usage Examples
- "Check this YAML file for issues"
- "Lint all YAML files in this directory"
- "Validate YAML formatting"
Installation
pip install yamllint
Examples
# Basic lint
yamllint file.yaml
# Lint directory
yamllint .
# JSON format
yamllint --format parsable file.yaml
# With config
yamllint -c .yamllint file.yaml