Bug 1425931: Add a task to lint the taskcluster configuration. draft
authorTom Prince <mozilla@hocat.ca>
Sat, 18 Nov 2017 01:49:32 -0700
changeset 23525 cc7383983a8014e3ff88f6cdf474d1eecb02ea55
parent 23522 830856b162108e09f0839580ec18780b27b565a0
child 23526 d57b8a441e47a8a00d6154d5d9efdaaf36eda0f3
push id181
push userbmo:mozilla@hocat.ca
push dateMon, 18 Dec 2017 20:41:36 +0000
bugs1425931
Bug 1425931: Add a task to lint the taskcluster configuration. MozReview-Commit-ID: 1zg0d2ddWoD
taskcluster/.yamllint
taskcluster/ci/source-test/mozlint.yml
new file mode 100644
--- /dev/null
+++ b/taskcluster/.yamllint
@@ -0,0 +1,10 @@
+---
+extends: default
+
+rules:
+  document-end:
+     present: false
+  document-start:
+     present: false
+  # Checks currently failing
+  line-length: disable
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -1,25 +1,47 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
 job-defaults:
     always-target: true
     treeherder:
         kind: test
         tier: 1
     worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
     worker:
         docker-image: {in-tree: "lint"}
         max-run-time: 1800
+    run:
+        using: mach
+        comm-checkout: true
 
 eslint:
     description: JS lint check
     platform: lint/opt
     treeherder:
         symbol: ES
     run:
         using: run-task
-        comm-checkout: true
         command: >
             cd /builds/worker/checkouts/gecko/ &&
             cp -r /build/node_modules_eslint node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules &&
             cd /builds/worker/checkouts/gecko/comm &&
             ../mach lint -f treeherder -l eslint --quiet
+
+yaml:
+    description: yamllint run over the taskcluster configuration
+    platform: lint/opt
+    treeherder:
+        symbol: yaml
+    run:
+        mach: lint -f treeherder -l yaml -n comm/taskcluster .taskcluster.yml
+
+py-flake8:
+    description: flake8 run over the thunderbird codebase
+    platform: lint/opt
+    treeherder:
+        symbol: f8
+    run:
+        mach: lint -f treeherder -l flake8 -n comm/taskcluster