Bug 1239437 - Allow run_test to be unused in xpcshell tests. r=pbrosset draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 22 Jan 2016 20:36:59 -0600
changeset 324479 71b1feac3bd564e69990d56b0cb3032b3d47d71d
parent 324478 24f1704511b9b753347dd0736f79ce8c8f9af7a6
child 324480 d8986c46df7458c7f55d6335ed86134073aaf443
push id9925
push userjryans@gmail.com
push dateSat, 23 Jan 2016 02:38:47 +0000
reviewerspbrosset
bugs1239437
milestone46.0a1
Bug 1239437 - Allow run_test to be unused in xpcshell tests. r=pbrosset
devtools/.eslintrc.xpcshell
--- a/devtools/.eslintrc.xpcshell
+++ b/devtools/.eslintrc.xpcshell
@@ -1,17 +1,19 @@
-// Parent config file for all devtools browser mochitest files.
+// Parent config file for all devtools xpcshell files.
 {
   "extends": [
     "../testing/xpcshell/xpcshell.eslintrc"
   ],
   "rules": {
     // Allow non-camelcase so that run_test doesn't produce a warning.
     "camelcase": 0,
     // Allow using undefined variables so that tests can refer to functions
     // and variables defined in head.js files, without having to maintain a
     // list of globals in each .eslintrc file.
     // Note that bug 1168340 will eventually help auto-registering globals
     // from head.js files.
     "no-undef": 0,
-    "block-scoped-var": 0
+    "block-scoped-var": 0,
+    // Allow run_test to be unused in xpcshell
+    "no-unused-vars": [2, { "varsIgnorePattern": "run_test" }],
   }
 }