yamllint
A linter for YAML files. tldr-pages
On several platforms
Several platforms
Lint a file
yamllint path/to/file.yamlIdentifyLint all YAML files in a directory recursively
yamllint path/to/directoryIdentifyLint a file with a specific config file
yamllint --config-file path/to/config.yaml path/to/file.yamlIdentifyLint a file using a preset config (default or relaxed)
yamllint --config-data "extends: relaxed" path/to/file.yamlIdentifyOutput in a parsable format (for CI integration)
yamllint --format parsable path/to/file.yamlIdentifyLint a file with strict mode (return 2 for warnings)
yamllint --strict path/to/file.yamlIdentifyRead from stdin
cat path/to/file.yaml | yamllint -IdentifyDisplay help
yamllint --helpIdentify