j13k/yaml-lint

A compact command line utility for checking YAML file syntax

1.1.3 2018-03-27 06:36 UTC

README

Latest Version on Packagist Software License Total Downloads Scrutinizer Code Quality

A compact command line utility for checking YAML file syntax. Uses the parsing facility of the Symfony Yaml Component.

Usage

usage: yaml-lint [options] [input source]

  input source    Path to file, or "-" to read from standard input

  -q, --quiet     Restrict output to syntax errors
  -h, --help      Display this help
  -V, --version   Display application version

ℹ️ Note that only single files or standard input are supported in the current stable release, 1.1.3.

📢 Experimental support for multiple files is available in dev-master.

Install

Install as a project component with Composer (executable from the project's vendor/bin directory):

composer require j13k/yaml-lint

Typically a binary edition (yaml-lint.phar) is also 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.

Change log

Please see CHANGELOG for information on what has changed recently.

Credits

License

The MIT License (MIT). Please see LICENCE for more information.