yaml-lint

Lint YAML files for syntax errors and style issues

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A simple (CLI) tool to lint YAML files

Commands

yamllint

Examples

check yaml file for errors$ yamllint config.yaml
lint all yaml files in a directory$ yamllint .
lint yaml with custom configuration file$ yamllint -c .yamllint myfile.yml
check yaml and show detailed output$ yamllint -f parsable config.yaml
validate yaml from standard input$ cat file.yaml | yamllint -