A compact command line utility for checking YAML file syntax
Installs: 705 337
Open Issues: 2
- php: >=5.6
- composer-runtime-api: ^2
- ext-json: *
- symfony/yaml: ^2 || ^3 || ^4 || ^5 || ^6
- dev-master / 1.1.x-dev
This package is auto-updated.
Last update: 2023-06-09 01:22:00 UTC
A compact command line linting tool for validating YAML files, using the parsing facility of the Symfony Yaml Component.
usage: yaml-lint [options] [input source] input source Path to file(s), or "-" to read from standard input -q, --quiet Restrict output to syntax errors -h, --help Display this help -V, --version Display application version
To get started using yaml-lint in a project, install it with Composer:
composer require --dev j13k/yaml-lint
It can then be run from the project's
To set up yaml-lint globally, install it in the Composer home directory:
composer global require j13k/yaml-lint
It can then be run from the
bin directory of Composer home (typically
A binary edition ,
yaml-lint.phar, is available for download
with each release. This embeds the latest stable version of the Symfony
Yaml component that is current at the time of the release.
The binary can be conveniently installed using PHIVE:
phive install yaml-lint
yaml-lint is bundled in the phpqa Docker image, which provides a suite of static analysis tools for PHP. See the phpqa project for installation and usage instructions.
Please see CHANGELOG for information on what has changed recently.
The MIT License (MIT). Please see LICENCE for more information.