summaryrefslogtreecommitdiff
path: root/scripts/lint-yaml.sh
blob: c3bd7f2817e11b5f610c0390e66707e51a809b52 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

set -euo pipefail

if ! command -v yamllint > /dev/null; then
  echo "ERROR: yamllint is not installed. For more information, see https://yamllint.readthedocs.io/en/stable/index.html."
  exit 1
fi

yamllint --strict -f colored "$@"