From cb7d55640785ff97f1eb6016ce1d9d42548de5ec Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 16 Jun 2020 17:03:46 +0000 Subject: [PATCH] Bug 1642825 - mozlint: Run the rejected-words linter in the CI r=Gijs,linter-reviewers,ahal Depends on D78158 Differential Revision: https://phabricator.services.mozilla.com/D78230 --- taskcluster/ci/source-test/mozlint.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/taskcluster/ci/source-test/mozlint.yml b/taskcluster/ci/source-test/mozlint.yml index 6e3373dee6ec..d197d6fe3b1c 100644 --- a/taskcluster/ci/source-test/mozlint.yml +++ b/taskcluster/ci/source-test/mozlint.yml @@ -58,6 +58,34 @@ codespell: - '**/*.ftl' - 'tools/lint/codespell.yml' + +rejected-words: + description: Reject some words we don't want to use in the code base + treeherder: + symbol: text(rejected-words) + # We don't want patches to be backed out because of this, a follow up bug will be + # good enough + tier: 2 + run: + mach: lint -v -l rejected-words -f treeherder -f json:/builds/worker/mozlint.json * + when: + files-changed: + - '**/*.js' + - '**/*.jsm' + - '**/*.jxs' + - '**/*.xml' + - '**/*.html' + - '**/*.xhtml' + - '**/*.cpp' + - '**/*.c' + - '**/*.h' + - '**/*.configure' + - '**/*.py' + - '**/*.properties' + - '**/*.rst' + - '**/*.ftl' + - 'tools/lint/rejected-words.yml' + cpp-virtual-final: description: lint C++ virtual function declarations treeherder: