Bug 1433912 - [lint] Create a task for the codespell linter, r?Sylvestre
MozReview-Commit-ID: 32KXjHl00fU
--- 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: >