Bug 1239437 - Allow run_test to be unused in xpcshell tests. r=pbrosset
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 19 Jan 2016 18:49:39 -0600
changeset 304513 bbdb71a5c1c002ae6c3c679f76e19705bdc6cd67
parent 304512 96c86adfe0414cb2dd4c2ec2724c806323bba276
child 304514 6b3fdf3adbc3ea8b9956da2fca088b069e96b2f9
push id9214
push userraliiev@mozilla.com
push dateMon, 07 Mar 2016 14:25:21 +0000
treeherdermozilla-aurora@8849dd1a4a79 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbrosset
bugs1239437
milestone47.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" }],
   }
 }