Project

yaml-lint

0.17
Low commit activity in last 3 years
No release in over a year
Check if your YAML files can be loaded.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

GemVersion TravisBuild Coverage Status

yaml-lint

Simple yaml check tool. yaml-lint will simply try to load the YAML file with the built-in Ruby yaml library.

Install

gem install yaml-lint

Usage

Check a file

yaml-lint filename.yaml

Check a complete folder

yaml-lint hiera/

Check a complete folder, ignoring any non-YAML files

yaml-lint -i hiera/

Supported options:

$ yaml-lint --help

yaml-lint is a tool to check the syntax of your YAML files
Usage: yaml-lint [options] <file(s) or folder(s)>
    -q, --quiet                      Run quiet. Only log failing files.
    -Q, --very-quiet                 Run more quiet. Return code is the number of failed files.
    -n, --no-check-file-ext          Do not check the file extension to match known yaml files.
    -i, --ignore-non-yaml-files      Ignoring non-yaml files.
    -e, --exclude x,y,z              Coma-separated list of files or folders to exclude.
    -c, --no-color                   Disables the colors in the output.
    -h, --help