Bug 1433912 - [lint] Create a task for the codespell linter, r?Sylvestre draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Mon, 29 Jan 2018 09:29:09 -0500
changeset 748294 f586475f6f44a054b38baa85501918640b143660
parent 748293 68ab4fcf86171019bbef89456f21fd2b37239195
push id97118
push userahalberstadt@mozilla.com
push dateMon, 29 Jan 2018 15:43:41 +0000
reviewersSylvestre
bugs1433912
milestone60.0a1
Bug 1433912 - [lint] Create a task for the codespell linter, r?Sylvestre MozReview-Commit-ID: 32KXjHl00fU
taskcluster/ci/source-test/mozlint.yml
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -10,16 +10,39 @@ job-defaults:
     run:
         using: mach
     when:
         files-changed:
             # Other misc lint related files.
             - 'python/mozlint/**'
             - 'tools/lint/**'
 
+codespell:
+    description: Checks for misspellings in text files
+    platform: lint/opt
+    treeherder:
+        symbol: spell
+    run:
+        mach: lint -l codespell -f treeherder
+    when:
+        files-changed:
+            - '**/*.js'
+            - '**/*.jsm'
+            - '**/*.jxs'
+            - '**/*.xml'
+            - '**/*.html'
+            - '**/*.xhtml'
+            - '**/*.cpp'
+            - '**/*.c'
+            - '**/*.h'
+            - '**/*.configure'
+            - '**/*.py'
+            - '**/*.properties'
+            - '**/*.rst'
+
 eslint:
     description: JS lint check
     platform: lint/opt
     treeherder:
         symbol: ES
     run:
         using: run-task
         command: >