yamllint

Linter for YAML files

Install

All systems
curl cmd.cat/yamllint.sh
Debian Debian
apt-get install yamllint
Ubuntu
apt-get install yamllint
Arch Arch Linux
pacman -S yamllint
image/svg+xml Kali Linux
apt-get install yamllint
Fedora
dnf install yamllint
Windows (WSL2)
sudo apt-get update sudo apt-get install yamllint
OS X
brew install yamllint
Raspbian
apt-get install yamllint

yamllint

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.