Simple yaml check tool that checks some more things than the original version. yaml-lint still tries to load the YAML file with the built-in Ruby yaml library and performs some additional checks afterwards.
- correct indentation
- OK: "key": (or single quotes)
- NOK: "key:" (or single quotes)
- OK: key: 'value' (or double quotes)
- NOK: key: value' (or double quotes)
gem install yaml-lint
Check a file
yaml-lint filename.yaml
Check a complete folder
yaml-lint hiera/