yamllint
A linter for YAML files. More information: https://yamllint.readthedocs.io.
- Lint a file:
yamllint
- Lint all YAML files in a directory recursively:
yamllint
- Lint a file with a specific config file:
yamllint
- Lint a file using a preset config (
defaultorrelaxed):
yamllint ""
- Output in a parsable format (for CI integration):
yamllint parsable
- Lint a file with strict mode (return 2 for warnings):
yamllint
- Read from
stdin:
cat | yamllint -
- Display help:
yamllint
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
