Practical YAML linting and validation with score, badge and web report
840
A command to inspect your YAMLs (Kubernetes, Docker Compose, GitHub Actions), generate score, badge and a beautiful web report.
docker run --rm -v "$PWD":/work -p 8080:8080 darioajr/yaml-doctor:latest
./yaml-doctor-report.html./yaml-doctor-report.json./yaml-doctor-badge.svgSe estiver usando Docker Desktop no Windows, prefira:
docker run --rm -v "/c/caminho/para/seu/projeto:/work" -p 8080:8080 darioajr/yaml-doctor:latest
Ou, se estiver usando Git Bash:
docker run --rm -v "$(pwd):/work" -p 8080:8080 darioajr/yaml-doctor:latest
Common: tabs, trailing spaces, long lines, invalid parse/duplications.
Docker Compose: services, image|build, avoids :latest, suggests restart.
GitHub Actions: jobs/steps, runs-on, suggests pinning uses, suggests on.
Kubernetes: apiVersion/kind/metadata.name, avoids :latest, resources.limits, probes.
⚠️ MVP: no complete K8s schema validation (focus on speed and lightweight).
# only generate files (no server)
docker run --rm -v "$PWD":/work darioajr/yaml-doctor:latest --path /work --no-serve
# custom port
docker run --rm -v "$PWD":/work -p 9090:9090 darioajr/yaml-doctor:latest --port 9090
There are examples in ./demo for you to test and take screenshots:
cd demo
docker run --rm -v "$PWD":/work -p 8080:8080 darioajr/yaml-doctor:latest
If you encounter manifest list errors in corporate environments:
# Force specific platform
docker pull --platform linux/amd64 darioajr/yaml-doctor:latest
# Or build locally
docker build -t yaml-doctor:local .
docker run --rm -v "$PWD":/work yaml-doctor:local --path /work --no-serve
Apache-2.0
Content type
Image
Digest
sha256:5e4fec527…
Size
55.1 MB
Last updated
about 1 year ago
docker pull darioajr/yaml-doctor