1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/scripts/lint.sh
David Karlsson 63ddb2912c Merge pull request #25710 from dvdksn/codex/migrate-rumdl
build: migrate Markdown tooling to rumdl
2026-08-05 09:16:24 +02:00

28 lines
482 B
Bash
Executable File

#!/bin/bash
# Run rumdl and Vale on specific files.
# Usage: scripts/lint.sh <file> [file...]
#
# Scoped output — no repo-wide noise. For full repo validation, use:
# docker buildx bake validate
set -uo pipefail
if [ $# -eq 0 ]; then
echo "Usage: $0 <file> [file...]" >&2
exit 1
fi
exit_code=0
echo "=== rumdl ==="
if ! npx --no-install rumdl check "$@" 2>&1; then
exit_code=1
fi
echo ""
echo "=== vale ==="
if ! vale "$@" 2>&1; then
exit_code=1
fi
exit $exit_code