How to Use: yamllint

Install Link to heading

From package:

# Manjaro / Arch
sudo pacman -S yamllint

# Alpine
apk add --update yamllint

From Docker (no official image so use mine):

docker run --rm -it -v "$PWD":/work -w /work sdwolfz/yamllint:latest sh

Configure Link to heading

Add a .yamllint.yml file containing your rules:

---

extends: default

rules:
  line-length:
    max: 80
    level: warning

Use Link to heading

Single file:

yamllint ./path/to/yaml-file.yml

All files:

yamllint .