summaryrefslogtreecommitdiff
path: root/buildscripts/yamllinters.sh
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-03-10 08:48:55 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-25 16:18:55 +0000
commit5e1976b161016dd96d81a1d86a986e63ef9e79dd (patch)
tree795ec0773e73bd1c245e9125221c2ae878b12b18 /buildscripts/yamllinters.sh
parentd25e6a800437f65ada43c9bc3502031d346cd128 (diff)
downloadmongo-5e1976b161016dd96d81a1d86a986e63ef9e79dd.tar.gz
SERVER-54957 Implement a linter for evergreen.yml
Diffstat (limited to 'buildscripts/yamllinters.sh')
-rwxr-xr-xbuildscripts/yamllinters.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildscripts/yamllinters.sh b/buildscripts/yamllinters.sh
new file mode 100755
index 00000000000..1450014a774
--- /dev/null
+++ b/buildscripts/yamllinters.sh
@@ -0,0 +1,7 @@
+set -o errexit
+
+BASEDIR=$(dirname "$0")
+cd "$BASEDIR/../"
+
+find buildscripts etc jstests -name '*.y*ml' -exec yamllint -c etc/yamllint_config.yml {} +
+python3 buildscripts/evglint