chrisdbrown/yaml-standardiser

Yaml Standardiser

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/chrisdbrown/yaml-standardiser

dev-master 2019-05-01 17:52 UTC

This package is auto-updated.

Last update: 2025-09-29 02:07:48 UTC


README

Apply some basic standards to your yaml files

Add to your project with composer require --dev chrisdbrown/yaml-standardiser

Run with vendor/bin/yaml-standardiser file-to-edit.yaml file2.yaml

Passing a directory will analyse all files with .yml or .yaml extensions in that directory and any subdirectories

Currently implemented

  • top level key alphabetisation on single file
  • multi-file support

Todo

  • prioritise certain keys in ordering
  • multi-level key alphabetisation
  • indentation
  • spacing between key blocks
  • object standards
  • set config by file
  • improved reporting
  • human-readable diff generation
  • patch file generation