summaryrefslogtreecommitdiff
path: root/etc/evergreen_lint.yml
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-06-01 17:49:24 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-04 18:47:26 +0000
commitb17e0a99632872e44684700978d55c01be1a7895 (patch)
tree7af62160d9b6f54a850777651c33e17a2a0286eb /etc/evergreen_lint.yml
parent93dae17209ab07c7af75df41db90aac4fe93585e (diff)
downloadmongo-b17e0a99632872e44684700978d55c01be1a7895.tar.gz
SERVER-57398 Extract evergreen yaml linter into its own repo
Diffstat (limited to 'etc/evergreen_lint.yml')
-rw-r--r--etc/evergreen_lint.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/evergreen_lint.yml b/etc/evergreen_lint.yml
new file mode 100644
index 00000000000..11ae37493e1
--- /dev/null
+++ b/etc/evergreen_lint.yml
@@ -0,0 +1,17 @@
+# These paths are relative to the directory containing this configuration file
+files:
+ - evergreen.yml
+
+rules:
+ # this is a list of all rules available, their parameters, and their
+ # default values. Comment out a rule to disable it
+ - rule: "limit-keyval-inc"
+ # the maximum number of keyval.inc commands to allow in your YAML
+ limit: 4
+ - rule: "shell-exec-explicit-shell"
+ - rule: "no-working-dir-on-shell"
+ - rule: "no-shell-exec"
+ - rule: "no-multiline-expansions-update"
+ - rule: "invalid-build-parameter"
+ - rule: "required-expansions-write"
+ regex: .*\/evergreen\/.*\.sh