diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-08 18:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-08 18:08:15 +0300 |
commit | e18e22ce4c7a4ee0680adda25e4cfa9cf4bb1be4 (patch) | |
tree | ad5cdd2a994e9ae4627330769eb5004f49d6f435 /scripts | |
parent | cdda3d117c99cadf295f26abc92cb2456033b762 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lint-yaml.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lint-yaml.sh b/scripts/lint-yaml.sh new file mode 100755 index 00000000000..c3bd7f2817e --- /dev/null +++ b/scripts/lint-yaml.sh @@ -0,0 +1,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 "$@" |