HUB
Sign inSign up
yaml-lint logo

j13k/yaml-lint

By j13k

•Updated 6 days ago

A compact command line utility for checking YAML file syntax.

Image
Developer tools
0

649

j13k/yaml-lint repository overview

⁠yaml-lint

A compact command line utility for checking YAML file syntax, using the symfony/yaml⁠ parser. The image includes PHP 8.6.0 and symfony/yaml 7.4.23, so you don't need PHP or Composer installed.

⁠Usage

Mount the files to check at /workdir:

# Check one file in the current directory
docker run --rm -v "$PWD:/workdir:ro" j13k/yaml-lint config.yml

# Check several files
docker run --rm -v "$PWD:/workdir:ro" j13k/yaml-lint config.yml services.yml

Or read from standard input:

cat config.yml | docker run --rm -i j13k/yaml-lint -

Options:

  -q, --quiet       Restrict output to syntax errors
  -t, --parse-tags  Enable parsing of custom YAML tags
  -h, --help        Display this help
  -V, --version     Display application version

The exit code is 0 if all input is valid, and 1 for a syntax error, a missing or unreadable file, or invalid options.

⁠Tags

Each release is tagged with its version, such as 1.1.10. These tags move with each release:

  • 1.1: the newest 1.1.x release
  • 1: the newest 1.x release
  • latest: the newest release, currently 1.1.10

Images are built for linux/amd64 and linux/arm64, and the newest release's image is rebuilt monthly to pick up security fixes.

⁠More information

Tag summary

Content type

Image

Digest

sha256:6a805a19c…

Size

50.3 MB

Last updated

6 days ago

docker pull j13k/yaml-lint