2020-03-18 12:27:54 +03:00
|
|
|
/* 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/. */
|
|
|
|
|
2016-10-18 10:38:10 +03:00
|
|
|
"use strict";
|
|
|
|
|
2019-03-28 12:38:02 +03:00
|
|
|
const xpcshellTestConfig = require("eslint-plugin-mozilla/lib/configs/xpcshell-test.js");
|
|
|
|
const browserTestConfig = require("eslint-plugin-mozilla/lib/configs/browser-test.js");
|
|
|
|
const mochitestTestConfig = require("eslint-plugin-mozilla/lib/configs/mochitest-test.js");
|
|
|
|
const chromeTestConfig = require("eslint-plugin-mozilla/lib/configs/chrome-test.js");
|
2020-01-21 23:46:06 +03:00
|
|
|
const fs = require("fs");
|
2020-01-25 00:55:04 +03:00
|
|
|
const path = require("path");
|
2019-03-28 12:38:02 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Some configurations have overrides, which can't be specified within overrides,
|
|
|
|
* so we need to remove them.
|
|
|
|
*/
|
|
|
|
function removeOverrides(config) {
|
|
|
|
config = { ...config };
|
|
|
|
delete config.overrides;
|
|
|
|
return config;
|
|
|
|
}
|
|
|
|
|
|
|
|
const xpcshellTestPaths = ["**/test*/unit*/", "**/test*/xpcshell/"];
|
|
|
|
|
2020-03-12 05:35:24 +03:00
|
|
|
const browserTestPaths = ["**/test*/**/browser*/"];
|
2019-03-28 12:38:02 +03:00
|
|
|
|
|
|
|
const mochitestTestPaths = [
|
2020-02-11 20:33:15 +03:00
|
|
|
// Note: we do not want to match testing/mochitest as that would apply
|
|
|
|
// too many globals for that directory.
|
|
|
|
"**/test/mochitest/",
|
|
|
|
"**/tests/mochitest/",
|
2020-04-07 19:00:03 +03:00
|
|
|
"**/test/mochitests/",
|
2020-02-11 20:33:15 +03:00
|
|
|
"testing/mochitest/tests/SimpleTest/",
|
2020-02-12 22:38:40 +03:00
|
|
|
"testing/mochitest/tests/Harness_sanity/",
|
2019-03-28 12:38:02 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
const chromeTestPaths = ["**/test*/chrome/"];
|
|
|
|
|
2020-01-21 23:46:38 +03:00
|
|
|
const ignorePatterns = [
|
2020-01-25 00:55:04 +03:00
|
|
|
...fs
|
|
|
|
.readFileSync(
|
|
|
|
path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
|
|
|
|
)
|
2020-01-21 23:46:38 +03:00
|
|
|
.toString("utf-8")
|
|
|
|
.split("\n"),
|
2020-01-25 00:55:04 +03:00
|
|
|
...fs
|
|
|
|
.readFileSync(
|
|
|
|
path.join(__dirname, "devtools", "client", "debugger", ".eslintignore")
|
|
|
|
)
|
2020-01-21 23:46:38 +03:00
|
|
|
.toString("utf-8")
|
|
|
|
.split("\n")
|
|
|
|
.filter(p => p && !p.startsWith("#"))
|
|
|
|
.map(p => `devtools/client/debugger/${p}`),
|
|
|
|
];
|
2020-01-21 23:46:06 +03:00
|
|
|
|
2016-10-18 10:38:10 +03:00
|
|
|
module.exports = {
|
2020-03-13 22:15:11 +03:00
|
|
|
parser: "babel-eslint",
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: "script",
|
|
|
|
babelOptions: {
|
|
|
|
configFile: path.join(__dirname, ".babel-eslint.rc.js"),
|
|
|
|
},
|
|
|
|
},
|
2020-01-21 23:46:06 +03:00
|
|
|
ignorePatterns,
|
2020-01-24 17:56:09 +03:00
|
|
|
// Ignore eslint configurations in parent directories.
|
|
|
|
root: true,
|
2017-04-25 22:12:21 +03:00
|
|
|
// New rules and configurations should generally be added in
|
|
|
|
// tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
|
|
|
|
// allow external repositories that use the plugin to pick them up as well.
|
|
|
|
extends: ["plugin:mozilla/recommended"],
|
2015-09-30 16:44:48 +03:00
|
|
|
plugins: ["mozilla"],
|
2017-10-09 12:54:16 +03:00
|
|
|
overrides: [
|
2020-03-07 12:30:44 +03:00
|
|
|
{
|
|
|
|
// All .eslintrc.js files are in the node environment, so turn that
|
|
|
|
// on here.
|
|
|
|
// https://github.com/eslint/eslint/issues/13008
|
|
|
|
files: [".eslintrc.js"],
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
browser: false,
|
|
|
|
},
|
|
|
|
},
|
2017-10-09 12:54:16 +03:00
|
|
|
{
|
2018-02-07 19:02:25 +03:00
|
|
|
files: [
|
2019-09-04 19:33:11 +03:00
|
|
|
"*.html",
|
|
|
|
"*.xhtml",
|
|
|
|
"*.xul",
|
|
|
|
"*.xml",
|
|
|
|
"js/src/builtin/**/*.js",
|
|
|
|
"js/src/shell/**/*.js",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-09-04 19:33:11 +03:00
|
|
|
// Curly brackets are required for all the tree via recommended.js,
|
2019-03-28 12:38:02 +03:00
|
|
|
// however these files aren't auto-fixable at the moment.
|
2020-03-07 13:09:44 +03:00
|
|
|
curly: "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2018-12-27 12:45:01 +03:00
|
|
|
// TODO: Bug 1515949. Enable no-undef for gfx/
|
2019-09-04 19:33:11 +03:00
|
|
|
files: "gfx/layers/apz/test/mochitest/**",
|
|
|
|
rules: {
|
|
|
|
"no-undef": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-09-04 19:33:11 +03:00
|
|
|
...removeOverrides(xpcshellTestConfig),
|
2019-03-28 12:38:02 +03:00
|
|
|
files: xpcshellTestPaths.map(path => `${path}**`),
|
|
|
|
excludedFiles: "devtools/**",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
{
|
2019-09-04 19:33:11 +03:00
|
|
|
// If it is an xpcshell head file, we turn off global unused variable checks, as it
|
|
|
|
// would require searching the other test files to know if they are used or not.
|
|
|
|
// This would be expensive and slow, and it isn't worth it for head files.
|
|
|
|
// We could get developers to declare as exported, but that doesn't seem worth it.
|
2019-03-28 12:38:02 +03:00
|
|
|
files: xpcshellTestPaths.map(path => `${path}head*.js`),
|
2020-03-07 13:09:44 +03:00
|
|
|
rules: {
|
2019-09-04 19:33:11 +03:00
|
|
|
"no-unused-vars": [
|
2020-03-07 13:09:44 +03:00
|
|
|
"error",
|
|
|
|
{
|
2019-03-28 12:38:02 +03:00
|
|
|
args: "none",
|
|
|
|
vars: "local",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-03-28 12:38:02 +03:00
|
|
|
...browserTestConfig,
|
|
|
|
files: browserTestPaths.map(path => `${path}**`),
|
|
|
|
excludedFiles: "devtools/**",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
{
|
2019-03-28 12:38:02 +03:00
|
|
|
...removeOverrides(mochitestTestConfig),
|
|
|
|
files: mochitestTestPaths.map(path => `${path}**`),
|
|
|
|
excludedFiles: [
|
|
|
|
"devtools/**",
|
|
|
|
"security/manager/ssl/tests/mochitest/browser/**",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2019-09-04 19:33:11 +03:00
|
|
|
...removeOverrides(chromeTestConfig),
|
2019-03-28 12:38:02 +03:00
|
|
|
files: chromeTestPaths.map(path => `${path}**`),
|
|
|
|
excludedFiles: ["devtools/**"],
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
{
|
2019-09-04 19:33:11 +03:00
|
|
|
env: {
|
2019-03-28 12:38:02 +03:00
|
|
|
// Ideally we wouldn't be using the simpletest env here, but our uses of
|
2019-09-04 19:33:11 +03:00
|
|
|
// js files mean we pick up everything from the global scope, which could
|
|
|
|
// be any one of a number of html files. So we just allow the basics...
|
|
|
|
"mozilla/simpletest": true,
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
files: [
|
2019-03-28 12:38:02 +03:00
|
|
|
...mochitestTestPaths.map(path => `${path}/**/*.js`),
|
|
|
|
...chromeTestPaths.map(path => `${path}/**/*.js`),
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
2019-09-04 19:33:11 +03:00
|
|
|
},
|
2018-12-27 12:45:01 +03:00
|
|
|
{
|
|
|
|
files: [
|
2019-05-29 13:50:37 +03:00
|
|
|
"netwerk/cookie/test/browser/**",
|
2018-12-27 12:45:01 +03:00
|
|
|
"netwerk/test/browser/**",
|
|
|
|
"netwerk/test/mochitests/**",
|
|
|
|
"netwerk/test/unit*/**",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
2018-12-27 12:45:01 +03:00
|
|
|
rules: {
|
|
|
|
"mozilla/no-arbitrary-setTimeout": "off",
|
|
|
|
"mozilla/no-define-cc-etc": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"consistent-return": "off",
|
|
|
|
"no-eval": "off",
|
|
|
|
"no-global-assign": "off",
|
|
|
|
"no-nested-ternary": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-throw-literal": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ["layout/**"],
|
2020-03-07 13:09:44 +03:00
|
|
|
rules: {
|
2019-03-28 12:38:02 +03:00
|
|
|
"object-shorthand": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"mozilla/avoid-removeChild": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"mozilla/consistent-if-bracing": "off",
|
|
|
|
"mozilla/reject-importGlobalProperties": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"mozilla/no-arbitrary-setTimeout": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"mozilla/no-define-cc-etc": "off",
|
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
|
|
|
"mozilla/use-default-preference-values": "off",
|
|
|
|
"mozilla/use-includes-instead-of-indexOf": "off",
|
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"mozilla/use-ownerGlobal": "off",
|
|
|
|
complexity: "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"consistent-return": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"no-array-constructor": "off",
|
|
|
|
"no-caller": "off",
|
|
|
|
"no-cond-assign": "off",
|
|
|
|
"no-extra-boolean-cast": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"no-eval": "off",
|
|
|
|
"no-func-assign": "off",
|
|
|
|
"no-global-assign": "off",
|
|
|
|
"no-implied-eval": "off",
|
|
|
|
"no-lonely-if": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"no-nested-ternary": "off",
|
|
|
|
"no-new-wrappers": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-restricted-globals": "off",
|
|
|
|
"no-return-await": "off",
|
|
|
|
"no-sequences": "off",
|
2019-11-14 23:25:21 +03:00
|
|
|
"no-shadow": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"no-throw-literal": "off",
|
|
|
|
"no-useless-concat": "off",
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-unreachable": "off",
|
|
|
|
"no-unsanitized/method": "off",
|
|
|
|
"no-unsanitized/property": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"no-unsafe-negation": "off",
|
2019-03-28 12:38:02 +03:00
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-return": "off",
|
|
|
|
},
|
|
|
|
},
|
2020-03-07 13:09:44 +03:00
|
|
|
{
|
2019-03-28 12:38:02 +03:00
|
|
|
files: [
|
|
|
|
"dom/animation/**",
|
|
|
|
"dom/base/test/*.*",
|
2019-05-29 13:50:37 +03:00
|
|
|
"dom/base/test/unit/test_serializers_entities*.js",
|
|
|
|
"dom/base/test/unit_ipc/**",
|
|
|
|
"dom/base/test/jsmodules/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/base/*.*",
|
2019-05-29 13:50:37 +03:00
|
|
|
"dom/canvas/**",
|
|
|
|
"dom/encoding/**",
|
|
|
|
"dom/events/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/fetch/**",
|
2019-05-29 13:50:37 +03:00
|
|
|
"dom/file/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/html/**",
|
|
|
|
"dom/jsurl/**",
|
2019-05-29 13:50:37 +03:00
|
|
|
"dom/media/tests/**",
|
|
|
|
"dom/media/webaudio/**",
|
|
|
|
"dom/media/webspeech/**",
|
|
|
|
"dom/messagechannel/**",
|
|
|
|
"dom/midi/**",
|
|
|
|
"dom/network/**",
|
|
|
|
"dom/payments/**",
|
|
|
|
"dom/performance/**",
|
|
|
|
"dom/permission/**",
|
|
|
|
"dom/quota/**",
|
|
|
|
"dom/security/test/cors/**",
|
|
|
|
"dom/security/test/csp/**",
|
|
|
|
"dom/security/test/general/**",
|
2020-03-17 22:24:31 +03:00
|
|
|
"dom/security/test/https-only/**",
|
2019-05-29 13:50:37 +03:00
|
|
|
"dom/security/test/mixedcontentblocker/**",
|
2019-05-29 13:50:49 +03:00
|
|
|
"dom/security/test/sri/**",
|
|
|
|
"dom/security/test/referrer-policy/**",
|
|
|
|
"dom/serviceworkers/**",
|
|
|
|
"dom/smil/**",
|
2019-11-14 23:25:21 +03:00
|
|
|
"dom/tests/mochitest/**",
|
2019-05-29 13:50:49 +03:00
|
|
|
"dom/u2f/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/vr/**",
|
2019-05-29 13:50:49 +03:00
|
|
|
"dom/webauthn/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/webgpu/**",
|
|
|
|
"dom/websocket/**",
|
2019-05-29 13:50:49 +03:00
|
|
|
"dom/workers/**",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/worklet/**",
|
|
|
|
"dom/xml/**",
|
2019-05-29 13:50:49 +03:00
|
|
|
"dom/xslt/**",
|
|
|
|
"dom/xul/**",
|
|
|
|
"dom/ipc/test.xhtml",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
"consistent-return": "off",
|
|
|
|
"mozilla/avoid-removeChild": "off",
|
|
|
|
"mozilla/consistent-if-bracing": "off",
|
|
|
|
"mozilla/no-arbitrary-setTimeout": "off",
|
|
|
|
"mozilla/no-compare-against-boolean-literals": "off",
|
|
|
|
"mozilla/no-define-cc-etc": "off",
|
|
|
|
"mozilla/reject-importGlobalProperties": "off",
|
|
|
|
"mozilla/use-cc-etc": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"mozilla/use-chromeutils-import": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"mozilla/use-includes-instead-of-indexOf": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"mozilla/use-ownerGlobal": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"mozilla/use-services": "off",
|
2019-11-14 23:25:21 +03:00
|
|
|
"no-array-constructor": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"no-caller": "off",
|
|
|
|
"no-cond-assign": "off",
|
|
|
|
"no-control-regex": "off",
|
|
|
|
"no-debugger": "off",
|
|
|
|
"no-else-return": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"no-empty": "off",
|
|
|
|
"no-eval": "off",
|
|
|
|
"no-func-assign": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"no-global-assign": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"no-implied-eval": "off",
|
|
|
|
"no-lone-blocks": "off",
|
|
|
|
"no-lonely-if": "off",
|
|
|
|
"no-nested-ternary": "off",
|
|
|
|
"no-new-object": "off",
|
|
|
|
"no-new-wrappers": "off",
|
2019-11-15 19:42:21 +03:00
|
|
|
"no-octal": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-return-await": "off",
|
|
|
|
"no-restricted-globals": "off",
|
|
|
|
"no-self-assign": "off",
|
|
|
|
"no-self-compare": "off",
|
|
|
|
"no-sequences": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-shadow-restricted-names": "off",
|
|
|
|
"no-sparse-arrays": "off",
|
|
|
|
"no-throw-literal": "off",
|
|
|
|
"no-unreachable": "off",
|
|
|
|
"no-unsanitized/method": "off",
|
|
|
|
"no-unsanitized/property": "off",
|
|
|
|
"no-undef": "off",
|
2019-10-16 19:59:02 +03:00
|
|
|
"no-unused-vars": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"no-useless-call": "off",
|
|
|
|
"no-useless-concat": "off",
|
|
|
|
"no-useless-return": "off",
|
|
|
|
"no-with": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/l10n/tests/mochitest/document_l10n/non-system-principal/test.html",
|
2019-08-21 22:08:44 +03:00
|
|
|
"dom/payments/test/test_basiccard.html",
|
|
|
|
"dom/payments/test/test_bug1478740.html",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/payments/test/test_canMakePayment.html",
|
|
|
|
"dom/payments/test/test_closePayment.html",
|
2019-08-21 22:08:44 +03:00
|
|
|
"dom/payments/test/test_showPayment.html",
|
|
|
|
"dom/tests/browser/browser_persist_cookies.js",
|
2019-06-13 23:21:46 +03:00
|
|
|
"dom/tests/browser/browser_persist_mixed_content_image.js",
|
|
|
|
"netwerk/test/unit/test_http2-proxy.js",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
"no-async-promise-executor": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
2019-06-13 23:21:46 +03:00
|
|
|
"browser/base/content/test/chrome/test_aboutCrashed.xhtml",
|
2019-10-15 01:24:12 +03:00
|
|
|
"browser/base/content/test/chrome/test_aboutRestartRequired.xhtml",
|
2019-06-13 23:21:46 +03:00
|
|
|
"browser/base/content/test/general/browser_tab_dragdrop2_frame1.xhtml",
|
|
|
|
"browser/components/places/tests/chrome/test_0_bug510634.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"browser/components/places/tests/chrome/test_bug1163447_selectItems_through_shortcut.xhtml",
|
2019-06-13 23:21:46 +03:00
|
|
|
"browser/components/places/tests/chrome/test_0_bug510634.xhtml",
|
|
|
|
"browser/components/places/tests/chrome/test_bug1163447_selectItems_through_shortcut.xhtml",
|
2019-10-15 01:24:12 +03:00
|
|
|
"browser/components/places/tests/chrome/test_bug549192.xhtml",
|
|
|
|
"browser/components/places/tests/chrome/test_bug549491.xhtml",
|
2019-06-13 23:21:46 +03:00
|
|
|
"browser/components/places/tests/chrome/test_selectItems_on_nested_tree.xhtml",
|
|
|
|
"browser/components/places/tests/chrome/test_treeview_date.xhtml",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
"mozilla/no-arbitrary-setTimeout": "off",
|
|
|
|
"object-shorthand": "off",
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-unused-vars": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-06-13 23:21:46 +03:00
|
|
|
files: [
|
|
|
|
"accessible/tests/mochitest/actions/test_keys_menu.xhtml",
|
|
|
|
"accessible/tests/mochitest/elm/test_listbox.xhtml",
|
2019-10-16 19:59:02 +03:00
|
|
|
"accessible/tests/mochitest/events/test_focus_autocomplete.xhtml",
|
2019-06-13 23:21:46 +03:00
|
|
|
"accessible/tests/mochitest/events/test_focus_contextmenu.xhtml",
|
|
|
|
"accessible/tests/mochitest/events/test_tree.xhtml",
|
2019-10-16 19:59:02 +03:00
|
|
|
"accessible/tests/mochitest/hittest/test_zoom_tree.xhtml",
|
2019-06-13 23:21:46 +03:00
|
|
|
"accessible/tests/mochitest/name/test_general.xhtml",
|
|
|
|
"accessible/tests/mochitest/name/test_tree.xhtml",
|
|
|
|
"accessible/tests/mochitest/selectable/test_listbox.xhtml",
|
|
|
|
"accessible/tests/mochitest/states/test_expandable.xhtml",
|
|
|
|
"accessible/tests/mochitest/tree/test_button.xhtml",
|
2019-10-16 19:59:02 +03:00
|
|
|
"accessible/tests/mochitest/tree/test_tree.xhtml",
|
|
|
|
"accessible/tests/mochitest/treeupdate/test_contextmenu.xhtml",
|
|
|
|
"accessible/tests/mochitest/treeupdate/test_menu.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-06-13 23:21:46 +03:00
|
|
|
"object-shorthand": "off",
|
|
|
|
"mozilla/no-compare-against-boolean-literals": "off",
|
|
|
|
"mozilla/use-cc-etc": "off",
|
|
|
|
"consistent-return": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-sequences": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-call": "off",
|
2019-08-21 22:08:44 +03:00
|
|
|
},
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
2019-08-21 22:08:44 +03:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"testing/mochitest/browser-harness.xhtml",
|
|
|
|
"testing/mochitest/chrome/test_chromeGetTestFile.xhtml",
|
2019-10-15 01:24:12 +03:00
|
|
|
"testing/mochitest/chrome/test_sanityEventUtils.xhtml",
|
|
|
|
"testing/mochitest/chrome/test_sanityException.xhtml",
|
|
|
|
"testing/mochitest/chrome/test_sanityException2.xhtml",
|
|
|
|
"testing/mochitest/harness.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
2019-10-15 01:24:12 +03:00
|
|
|
rules: {
|
|
|
|
"dot-notation": "off",
|
|
|
|
"object-shorthand": "off",
|
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"mozilla/no-compare-against-boolean-literals": "off",
|
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
|
|
|
"mozilla/use-cc-etc": "off",
|
2019-10-16 19:59:02 +03:00
|
|
|
"consistent-return": "off",
|
2019-10-15 01:24:12 +03:00
|
|
|
"no-fallthrough": "off",
|
|
|
|
"no-nested-ternary": "off",
|
|
|
|
"no-redeclare": "off",
|
2019-10-16 19:59:02 +03:00
|
|
|
"no-sequences": "off",
|
2019-10-15 01:24:12 +03:00
|
|
|
"no-shadow": "off",
|
|
|
|
"no-throw-literal": "off",
|
|
|
|
"no-undef": "off",
|
2019-12-02 22:16:22 +03:00
|
|
|
"no-unsanitized/property": "off",
|
2019-10-15 01:24:12 +03:00
|
|
|
"no-unused-vars": "off",
|
2019-06-13 23:21:46 +03:00
|
|
|
"no-useless-call": "off",
|
2019-10-15 01:24:12 +03:00
|
|
|
},
|
2019-10-16 19:59:02 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"docshell/test/chrome/bug113934_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug215405_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug293235_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug294258_window.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"docshell/test/chrome/bug298622_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug301397_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug303267_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug311007_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug321671_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug360511_window.xhtml",
|
2019-10-16 19:59:02 +03:00
|
|
|
"docshell/test/chrome/bug396519_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug396649_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug449778_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug449780_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug582176_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug662200_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug690056_window.xhtml",
|
|
|
|
"docshell/test/chrome/bug89419_window.xhtml",
|
|
|
|
"docshell/test/chrome/mozFrameType_window.xhtml",
|
|
|
|
"docshell/test/chrome/test_bug453650.xhtml",
|
|
|
|
"docshell/test/chrome/test_bug454235.xhtml",
|
|
|
|
"docshell/test/chrome/test_bug565388.xhtml",
|
|
|
|
"docshell/test/chrome/test_bug608669.xhtml",
|
|
|
|
"docshell/test/chrome/test_bug789773.xhtml",
|
2019-12-02 22:16:22 +03:00
|
|
|
"docshell/test/chrome/test_bug846906.xhtml",
|
|
|
|
"docshell/test/chrome/test_docRedirect.xhtml",
|
|
|
|
"docshell/test/chrome/test_principalInherit.xhtml",
|
|
|
|
"docshell/test/chrome/test_viewsource_forbidden_in_iframe.xhtml",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
"dot-notation": "off",
|
2019-11-15 19:42:21 +03:00
|
|
|
"no-global-assign": "off",
|
|
|
|
"no-octal": "off",
|
2019-12-02 22:16:22 +03:00
|
|
|
"object-shorthand": "off",
|
|
|
|
"mozilla/consistent-if-bracing": "off",
|
|
|
|
"mozilla/no-compare-against-boolean-literals": "off",
|
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
|
|
|
"mozilla/use-cc-etc": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
2019-12-02 22:16:22 +03:00
|
|
|
"consistent-return": "off",
|
|
|
|
"no-delete-var": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-sequences": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-call": "off",
|
|
|
|
},
|
2019-11-15 19:42:21 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
"editor/composer/test/test_bug434998.xhtml",
|
|
|
|
"editor/libeditor/tests/test_bug607584.xhtml",
|
|
|
|
"editor/libeditor/tests/test_bug616590.xhtml",
|
|
|
|
"editor/libeditor/tests/test_bug780908.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-11-15 19:42:21 +03:00
|
|
|
"object-shorthand": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"no-undef": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: [
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/native_menus_window.xhtml",
|
|
|
|
"widget/tests/native_mouse_mac_window.xhtml",
|
|
|
|
"widget/tests/standalone_native_menu_window.xhtml",
|
|
|
|
"widget/tests/system_font_changes.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"widget/tests/taskbar_previews.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/test_bug1123480.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"widget/tests/test_bug343416.xhtml",
|
|
|
|
"widget/tests/test_bug428405.xhtml",
|
|
|
|
"widget/tests/test_bug429954.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/test_bug466599.xhtml",
|
|
|
|
"widget/tests/test_bug485118.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"widget/tests/test_bug517396.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/test_bug538242.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"widget/tests/test_bug596600.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/test_bug673301.xhtml",
|
|
|
|
"widget/tests/test_bug760802.xhtml",
|
|
|
|
"widget/tests/test_chrome_context_menus_win.xhtml",
|
|
|
|
"widget/tests/test_clipboard.xhtml",
|
|
|
|
"widget/tests/test_input_events_on_deactive_window.xhtml",
|
|
|
|
"widget/tests/test_key_event_counts.xhtml",
|
|
|
|
"widget/tests/test_keycodes.xhtml",
|
|
|
|
"widget/tests/test_panel_mouse_coords.xhtml",
|
|
|
|
"widget/tests/test_position_on_resize.xhtml",
|
|
|
|
"widget/tests/test_sizemode_events.xhtml",
|
|
|
|
"widget/tests/test_taskbar_progress.xhtml",
|
|
|
|
"widget/tests/test_transferable_overflow.xhtml",
|
|
|
|
"widget/tests/window_bug429954.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"widget/tests/window_bug478536.xhtml",
|
2019-11-15 19:42:21 +03:00
|
|
|
"widget/tests/window_composition_text_querycontent.xhtml",
|
|
|
|
"widget/tests/window_state_windows.xhtml",
|
|
|
|
"widget/tests/window_wheeltransaction.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-11-15 19:42:21 +03:00
|
|
|
complexity: "off",
|
|
|
|
"consistent-return": "off",
|
|
|
|
"dot-notation": "off",
|
|
|
|
"mozilla/prefer-boolean-length-check": "off",
|
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
2019-11-20 02:40:10 +03:00
|
|
|
"mozilla/use-cc-etc": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"object-shorthand": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"no-caller": "off",
|
|
|
|
"no-delete-var": "off",
|
2019-05-29 13:50:49 +03:00
|
|
|
"no-nested-ternary": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"no-new-object": "off",
|
|
|
|
"no-redeclare": "off",
|
2019-11-15 19:42:21 +03:00
|
|
|
"no-sequences": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"no-shadow": "off",
|
2019-11-20 02:40:10 +03:00
|
|
|
"no-undef": "off",
|
2019-11-20 22:05:30 +03:00
|
|
|
"no-unsafe-finally": "off",
|
|
|
|
"no-unsanitized/property": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-return": "off",
|
|
|
|
},
|
|
|
|
},
|
2020-03-07 13:09:44 +03:00
|
|
|
{
|
2019-11-20 22:05:30 +03:00
|
|
|
files: [
|
|
|
|
"dom/base/test/chrome/file_bug1139964.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug549682.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug616841.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug990812-1.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug990812-2.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug990812-3.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug990812-4.xhtml",
|
|
|
|
"dom/base/test/chrome/file_bug990812-5.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"dom/base/test/chrome/file_bug990812.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"dom/base/test/chrome/test_bug339494.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug429785.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug467123.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug683852.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug780529.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug800386.xhtml",
|
|
|
|
"dom/base/test/chrome/test_bug884693.xhtml",
|
2019-11-20 22:05:30 +03:00
|
|
|
"dom/base/test/chrome/test_document-element-inserted.xhtml",
|
|
|
|
"dom/base/test/chrome/test_domparsing.xhtml",
|
|
|
|
"dom/base/test/chrome/test_fileconstructor.xhtml",
|
|
|
|
"dom/base/test/chrome/title_window.xhtml",
|
|
|
|
"dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
|
|
|
|
"dom/base/test/chrome/window_swapFrameLoaders.xhtml",
|
|
|
|
"dom/base/test/test_domrequesthelper.xhtml",
|
|
|
|
"dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml",
|
|
|
|
"dom/console/tests/test_jsm.xhtml",
|
|
|
|
"dom/events/test/test_bug1412775.xhtml",
|
|
|
|
"dom/events/test/test_bug336682_2.xhtml",
|
|
|
|
"dom/events/test/test_bug415498.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"dom/events/test/test_bug602962.xhtml",
|
|
|
|
"dom/events/test/test_bug617528.xhtml",
|
|
|
|
"dom/events/test/test_bug679494.xhtml",
|
|
|
|
"dom/indexedDB/test/test_globalObjects_chrome.xhtml",
|
|
|
|
"dom/indexedDB/test/test_wrappedArray.xhtml",
|
|
|
|
"dom/ipc/test.xhtml",
|
|
|
|
"dom/ipc/tests/test_process_error.xhtml",
|
|
|
|
"dom/notification/test/chrome/test_notification_system_principal.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_busy_hang.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_convertpoint.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_crash_notify.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_crash_notify_no_report.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_crash_submit.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_hang_submit.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_hangui.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_idle_hang.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xhtml",
|
|
|
|
"dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xhtml",
|
|
|
|
"dom/security/test/general/test_bug1277803.xhtml",
|
|
|
|
"dom/serviceworkers/test/test_serviceworkerinfo.xhtml",
|
|
|
|
"dom/serviceworkers/test/test_serviceworkermanager.xhtml",
|
|
|
|
"dom/system/tests/test_constants.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/test_docshell_swap.xhtml",
|
|
|
|
"dom/tests/mochitest/chrome/window_focus.xhtml",
|
|
|
|
"dom/url/tests/test_bug883784.xhtml",
|
|
|
|
"dom/workers/test/test_WorkerDebugger.xhtml",
|
|
|
|
"dom/workers/test/test_WorkerDebugger_console.xhtml",
|
|
|
|
"dom/workers/test/test_fileReadSlice.xhtml",
|
|
|
|
"dom/workers/test/test_fileReaderSync.xhtml",
|
|
|
|
"dom/workers/test/test_fileSlice.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-11-27 18:39:16 +03:00
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
|
|
|
"mozilla/use-services": "off",
|
|
|
|
complexity: "off",
|
|
|
|
"no-array-constructor": "off",
|
|
|
|
"no-caller": "off",
|
|
|
|
"no-empty": "off",
|
|
|
|
"no-eval": "off",
|
|
|
|
"no-lone-blocks": "off",
|
|
|
|
"no-octal": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-throw-literal": "off",
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-unsanitized/method": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-return": "off",
|
|
|
|
"object-shorthand": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-11-27 18:39:16 +03:00
|
|
|
files: [
|
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml",
|
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml",
|
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml",
|
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory5.xhtml",
|
|
|
|
"toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"toolkit/components/aboutmemory/tests/test_dumpGCAndCCLogsToFile.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml",
|
|
|
|
"toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml",
|
2019-11-27 18:39:16 +03:00
|
|
|
"toolkit/components/aboutmemory/tests/test_sqliteMultiReporter.xhtml",
|
|
|
|
"toolkit/components/ctypes/tests/chrome/test_ctypes.xhtml",
|
|
|
|
"toolkit/components/osfile/tests/mochi/test_osfile_back.xhtml",
|
|
|
|
"toolkit/components/osfile/tests/mochi/test_osfile_comms.xhtml",
|
|
|
|
"toolkit/components/osfile/tests/mochi/test_osfile_front.xhtml",
|
|
|
|
"toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml",
|
|
|
|
"toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml",
|
|
|
|
"toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml",
|
|
|
|
"toolkit/components/workerloader/tests/test_loading.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug263683_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug304188_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug331215_window.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/content/tests/chrome/bug360437_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug366992_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug409624_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug429723_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/bug451540_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/dialog_dialogfocus.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/findbar_entireword_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/findbar_events_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/findbar_window.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/frame_popup_anchor.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xhtml",
|
2019-12-07 00:05:20 +03:00
|
|
|
"toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/content/tests/chrome/test_arrowpanel.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete2.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete3.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete4.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete5.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete_emphasis.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete_mac_caret.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_autocomplete_placehold_last_complete.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_browser_drop.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_bug1048178.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_bug382990.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_bug437844.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_bug624329.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_bug792324.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_contextmenu_list.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_cursorsnap.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_dialogfocus.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_hiddenitems.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_hiddenpaging.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_maximized_persist.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_menu.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_menuitem_blink.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_menulist.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_menulist_keynav.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_mousescroll.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_mozinputbox_dictionary.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_notificationbox.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_panel_focus.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_popup_keys.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_popup_scaled.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_popupincontent.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_popupremoving.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_popupremoving_frame.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_position.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_preferences.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_richlistbox.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_righttoleft.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_screenPersistence.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_scrollbar.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_showcaret.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_tabbox.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_textbox_search.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/test_tree_view.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_browser_drop.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_cursorsnap_wizard.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_keys.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_largemenu.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_panel.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_panel_anchoradjust.xhtml",
|
2019-12-07 00:05:20 +03:00
|
|
|
"toolkit/content/tests/chrome/window_popup_preventdefault_chrome.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/content/tests/chrome/window_preferences.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_preferences3.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_preferences_beforeaccept.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_preferences_commandretarget.xhtml",
|
2020-04-24 19:50:37 +03:00
|
|
|
"toolkit/content/tests/chrome/window_preferences_disabled.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/content/tests/chrome/window_preferences_onsyncfrompreference.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_subframe_origin.xhtml",
|
|
|
|
"toolkit/content/tests/chrome/window_titlebar.xhtml",
|
2019-12-07 00:05:20 +03:00
|
|
|
"toolkit/content/tests/chrome/window_tooltip.xhtml",
|
2019-11-11 22:14:34 +03:00
|
|
|
"toolkit/content/tests/widgets/test_contextmenu_menugroup.xhtml",
|
|
|
|
"toolkit/content/tests/widgets/test_contextmenu_nested.xhtml",
|
|
|
|
"toolkit/content/tests/widgets/test_editor_currentURI.xhtml",
|
|
|
|
"toolkit/content/tests/widgets/test_popupanchor.xhtml",
|
|
|
|
"toolkit/content/tests/widgets/test_popupreflows.xhtml",
|
|
|
|
"toolkit/content/tests/widgets/window_menubar.xhtml",
|
|
|
|
"toolkit/modules/tests/chrome/test_bug544442_checkCert.xhtml",
|
|
|
|
"toolkit/profile/test/test_create_profile.xhtml",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
2019-11-11 22:14:34 +03:00
|
|
|
rules: {
|
|
|
|
"object-shorthand": "off",
|
|
|
|
"consistent-return": "off",
|
|
|
|
"mozilla/consistent-if-bracing": "off",
|
2019-12-07 00:05:20 +03:00
|
|
|
"mozilla/no-compare-against-boolean-literals": "off",
|
|
|
|
"mozilla/no-useless-parameters": "off",
|
|
|
|
"mozilla/no-useless-removeEventListener": "off",
|
2019-11-11 22:14:34 +03:00
|
|
|
"mozilla/prefer-boolean-length-check": "off",
|
|
|
|
"mozilla/use-cc-etc": "off",
|
|
|
|
"mozilla/use-chromeutils-generateqi": "off",
|
|
|
|
"mozilla/use-chromeutils-import": "off",
|
|
|
|
"mozilla/use-default-preference-values": "off",
|
|
|
|
"mozilla/use-services": "off",
|
|
|
|
"no-caller": "off",
|
|
|
|
"no-else-return": "off",
|
|
|
|
"no-eval": "off",
|
|
|
|
"no-fallthrough": "off",
|
|
|
|
"no-irregular-whitespace": "off",
|
|
|
|
"no-lonely-if": "off",
|
|
|
|
"no-nested-ternary": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"no-sequences": "off",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-throw-literal": "off",
|
2019-11-27 18:39:16 +03:00
|
|
|
"no-undef": "off",
|
2019-11-11 22:14:34 +03:00
|
|
|
"no-unneeded-ternary": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-useless-concat": "off",
|
|
|
|
"no-useless-return": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-11-11 22:14:34 +03:00
|
|
|
files: [
|
|
|
|
"accessible/**",
|
|
|
|
"devtools/**",
|
|
|
|
"dom/**",
|
|
|
|
"docshell/**",
|
|
|
|
"editor/libeditor/tests/**",
|
|
|
|
"editor/spellchecker/tests/test_bug338427.html",
|
|
|
|
"gfx/**",
|
|
|
|
"image/test/browser/browser_image.js",
|
|
|
|
"js/src/builtin/**",
|
|
|
|
"layout/**",
|
2019-10-16 23:11:31 +03:00
|
|
|
"mobile/android/**",
|
|
|
|
"modules/**",
|
|
|
|
"netwerk/**",
|
|
|
|
"remote/**",
|
|
|
|
"security/manager/**",
|
|
|
|
"services/**",
|
|
|
|
"storage/test/unit/test_vacuum.js",
|
|
|
|
"taskcluster/docker/periodic-updates/scripts/**",
|
|
|
|
"testing/**",
|
|
|
|
"tools/**",
|
|
|
|
"widget/tests/test_assign_event_data.html",
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
|
|
|
rules: {
|
2019-10-16 23:11:31 +03:00
|
|
|
"mozilla/prefer-boolean-length-check": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-10-16 23:11:31 +03:00
|
|
|
// TODO: Bug 1609271 Fix all violations for ChromeUtils.import(..., null)
|
2020-03-07 13:09:44 +03:00
|
|
|
files: [
|
2019-10-16 23:11:31 +03:00
|
|
|
"browser/base/content/test/forms/head.js",
|
|
|
|
"browser/base/content/test/general/browser_datachoices_notification.js",
|
2020-01-29 16:15:54 +03:00
|
|
|
"browser/base/content/test/plugins/head.js",
|
2019-10-16 23:11:31 +03:00
|
|
|
"browser/base/content/test/sync/browser_fxa_web_channel.js",
|
|
|
|
"browser/base/content/test/webextensions/head.js",
|
|
|
|
"browser/components/customizableui/test/browser_1042100_default_placements_update.js",
|
|
|
|
"browser/components/customizableui/test/browser_1096763_seen_widgets_post_reset.js",
|
2020-01-29 16:15:54 +03:00
|
|
|
"browser/components/customizableui/test/browser_1161838_inserted_new_default_buttons.js",
|
|
|
|
"browser/components/customizableui/test/browser_989338_saved_placements_not_resaved.js",
|
|
|
|
"browser/components/customizableui/test/browser_currentset_post_reset.js",
|
|
|
|
"browser/components/customizableui/test/browser_panel_keyboard_navigation.js",
|
|
|
|
"browser/components/enterprisepolicies/tests/browser/browser_policies_setAndLockPref_API.js",
|
|
|
|
"browser/components/enterprisepolicies/tests/browser/head.js",
|
|
|
|
"browser/components/enterprisepolicies/tests/xpcshell/head.js",
|
|
|
|
"browser/components/enterprisepolicies/tests/xpcshell/test_proxy.js",
|
|
|
|
"browser/components/enterprisepolicies/tests/xpcshell/test_runOnce_helper.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_browserAction_context.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_browserAction_popup.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_currentWindow.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_getViews.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_management.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_menus_events.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_openPanel.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_pageAction_context.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_pageAction_popup.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_pageAction_show_matches.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_sessions_restore.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_audio.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_create_url.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_newtab_private.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_removeCSS.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_tabs_zoom.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_windows.js",
|
|
|
|
"browser/components/extensions/test/browser/browser_ext_windows_events.js",
|
|
|
|
"browser/components/extensions/test/browser/head.js",
|
|
|
|
"browser/components/extensions/test/browser/head_webNavigation.js",
|
|
|
|
"browser/components/extensions/test/xpcshell/test_ext_url_overrides_newtab.js",
|
|
|
|
"browser/components/migration/tests/unit/test_Edge_db_migration.js",
|
2020-04-23 02:35:08 +03:00
|
|
|
"browser/components/preferences/tests/browser_contentblocking.js",
|
2020-01-29 16:15:54 +03:00
|
|
|
"browser/components/translation/test/unit/test_cld2.js",
|
|
|
|
"browser/components/urlbar/tests/ext/browser/update/browser_getBrowserUpdateStatus_updateDisabledByPolicy.js",
|
|
|
|
"browser/extensions/doh-rollout/experiments/doorhanger/api.js",
|
|
|
|
"browser/extensions/doh-rollout/experiments/doorhanger/api.js",
|
|
|
|
"browser/extensions/doh-rollout/test/browser/browser_policyOverride.js",
|
|
|
|
"browser/extensions/doh-rollout/test/unit/test_localStorageMigration.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/head.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_creditCardRecords.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_migrateRecords.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_storage_remove.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_storage_tombstones.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_sync.js",
|
|
|
|
"browser/extensions/formautofill/test/unit/test_transformFields.js",
|
|
|
|
"browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.js",
|
|
|
|
"browser/extensions/report-site-issue/test/browser/head.js",
|
|
|
|
"browser/modules/test/unit/test_LiveBookmarkMigrator.js",
|
|
|
|
"devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_addons_debug_popup.js",
|
|
|
|
"dom/ipc/tests/browser_memory_distribution_telemetry.js",
|
|
|
|
"dom/push/test/xpcshell/head.js",
|
|
|
|
"dom/push/test/xpcshell/test_broadcast_success.js",
|
|
|
|
"dom/push/test/xpcshell/test_crypto.js",
|
|
|
|
"security/manager/ssl/RemoteSecuritySettings.jsm",
|
|
|
|
"security/manager/ssl/tests/unit/test_der.js",
|
|
|
|
"security/manager/ssl/X509.jsm",
|
|
|
|
"services/common/tests/unit/head_helpers.js",
|
|
|
|
"services/common/tests/unit/test_uptake_telemetry.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_accounts.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_accounts_device_registration.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_loginmgr_storage.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_oauth_token_storage.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_oauth_tokens.js",
|
|
|
|
"services/fxaccounts/tests/xpcshell/test_web_channel.js",
|
|
|
|
"services/sync/modules-testing/utils.js",
|
|
|
|
"services/sync/tests/unit/test_doctor.js",
|
|
|
|
"services/sync/tests/unit/test_postqueue.js",
|
|
|
|
"testing/marionette/components/marionette.js",
|
|
|
|
"testing/marionette/driver.js",
|
|
|
|
"testing/marionette/format.js",
|
|
|
|
"testing/marionette/server.js",
|
|
|
|
"testing/marionette/test/unit/test_prefs.js",
|
|
|
|
"testing/mochitest/browser-test.js",
|
|
|
|
"testing/mochitest/BrowserTestUtils/content/content-task.js",
|
|
|
|
"testing/xpcshell/head.js",
|
|
|
|
"toolkit/components/cloudstorage/tests/unit/test_cloudstorage.js",
|
|
|
|
"toolkit/components/crashes/tests/xpcshell/test_crash_manager.js",
|
|
|
|
"toolkit/components/crashes/tests/xpcshell/test_crash_service.js",
|
|
|
|
"toolkit/components/crashes/tests/xpcshell/test_crash_store.js",
|
|
|
|
"toolkit/components/enterprisepolicies/tests/browser/head.js",
|
|
|
|
"toolkit/components/enterprisepolicies/tests/EnterprisePolicyTesting.jsm",
|
|
|
|
"toolkit/components/enterprisepolicies/tests/xpcshell/head.js",
|
|
|
|
"toolkit/components/extensions/ExtensionPreferencesManager.jsm",
|
|
|
|
"toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
|
|
|
|
"toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
|
|
|
|
"toolkit/components/extensions/parent/ext-management.js",
|
|
|
|
"toolkit/components/extensions/test/mochitest/test_ext_contentscript_cache.html",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/head_native_messaging.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_api_permissions.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_background_early_shutdown.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_background_teardown.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context_isolation.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_contentscript_teardown.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_contexts_gc.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_privacy_disable.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_schemas_interactive.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_shutdown_cleanup.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_storage.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_storage_sync.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_storage_sync_crypto.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_ext_tab_teardown.js",
|
|
|
|
"toolkit/components/extensions/test/xpcshell/test_native_manifests.js",
|
|
|
|
"toolkit/components/featuregates/test/unit/test_FeatureGate.js",
|
|
|
|
"toolkit/components/mozintl/mozIntl.jsm",
|
|
|
|
"toolkit/components/normandy/test/browser/browser_actions_ShowHeartbeatAction.js",
|
|
|
|
"toolkit/components/osfile/modules/osfile_async_front.jsm",
|
|
|
|
"toolkit/components/osfile/modules/osfile_native.jsm",
|
|
|
|
"toolkit/components/osfile/tests/xpcshell/test_osfile_kill.js",
|
|
|
|
"toolkit/components/passwordmgr/test/unit/test_getFormFields.js",
|
|
|
|
"toolkit/components/passwordmgr/test/unit/test_getPasswordFields.js",
|
|
|
|
"toolkit/components/passwordmgr/test/unit/test_getUserNameAndPasswordFields.js",
|
|
|
|
"toolkit/components/processsingleton/MainProcessSingleton.jsm",
|
|
|
|
"toolkit/components/telemetry/tests/unit/head.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_EcosystemTelemetry.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_EventPing.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_HealthPing.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_PingAPI.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_PrioPing.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_TelemetryController_idle.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_TelemetryReportingPolicy.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_TelemetrySendOldPings.js",
|
|
|
|
"toolkit/components/telemetry/tests/unit/test_TelemetrySession.js",
|
|
|
|
"toolkit/modules/subprocess/test/xpcshell/test_subprocess.js",
|
|
|
|
"toolkit/modules/tests/xpcshell/test_GMPInstallManager.js",
|
|
|
|
"toolkit/mozapps/extensions/internal/AddonTestUtils.jsm",
|
|
|
|
"toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/head_addons.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_clients.js",
|
2020-04-30 13:02:37 +03:00
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_mlbf.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_mlbf_fetch.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_mlbf_update.js",
|
2020-01-29 16:15:54 +03:00
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_regexp_split.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_targetapp_filter.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_telemetry.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklistchange.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_gmpProvider.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_no_addons.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_permissions_prefs.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_signed_updatepref.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_signed_verify.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_webextension.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_webextension_events.js",
|
|
|
|
"toolkit/mozapps/extensions/test/xpcshell/test_XPIStates.js",
|
|
|
|
"toolkit/mozapps/installer/precompile_cache.js",
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
"mozilla/reject-chromeutils-import-null": "off",
|
2020-03-07 13:09:44 +03:00
|
|
|
},
|
2020-01-29 16:15:54 +03:00
|
|
|
},
|
2020-03-07 13:09:44 +03:00
|
|
|
],
|
2016-10-18 10:38:10 +03:00
|
|
|
};
|