dom/system/gonk/tests/marionette/ril_jshint/jshintrc

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/system/gonk/tests/marionette/ril_jshint/jshintrc	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,118 @@
     1.4 +{
     1.5 +    // JSHint Default Configuration File (as on JSHint website)
     1.6 +    // See http://jshint.com/docs/ for more details
     1.7 +
     1.8 +    // Modify for RIL usage.
     1.9 +
    1.10 +    "maxerr"        : 10000,    // {int} Maximum error before stopping
    1.11 +
    1.12 +    // Enforcing
    1.13 +    "bitwise"       : false,    // true: Prohibit bitwise operators (&, |, ^, etc.)
    1.14 +    "camelcase"     : false,    // true: Identifiers must be in camelCase
    1.15 +    "curly"         : false,    // true: Require {} for every new block or scope
    1.16 +    "eqeqeq"        : false,    // true: Require triple equals (===) for comparison
    1.17 +    "forin"         : false,    // true: Require filtering for..in loops with obj.hasOwnProperty()
    1.18 +    "immed"         : false,    // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
    1.19 +    //"indent"        : 2,        // {int} Number of spaces to use for indentation
    1.20 +    "latedef"       : false,    // true: Require variables/functions to be defined before being used
    1.21 +    "newcap"        : false,    // true: Require capitalization of all constructor functions e.g. `new F()`
    1.22 +    "noarg"         : true,     // true: Prohibit use of `arguments.caller` and `arguments.callee`
    1.23 +    "noempty"       : false,    // true: Prohibit use of empty blocks
    1.24 +    "nonew"         : false,    // true: Prohibit use of constructors for side-effects (without assignment)
    1.25 +    "plusplus"      : false,    // true: Prohibit use of `++` & `--`
    1.26 +    "quotmark"      : false,    // Quotation mark consistency:
    1.27 +                                //   false    : do nothing (default)
    1.28 +                                //   true     : ensure whatever is used is consistent
    1.29 +                                //   "single" : require single quotes
    1.30 +                                //   "double" : require double quotes
    1.31 +    "undef"         : false,    // true: Require all non-global variables to be declared (prevents global leaks)
    1.32 +    "unused"        : false,    // true: Require all defined variables be used
    1.33 +    "strict"        : false,    // true: Requires all functions run in ES5 Strict Mode
    1.34 +    "trailing"      : false,    // true: Prohibit trailing whitespaces
    1.35 +    "maxparams"     : false,    // {int} Max number of formal params allowed per function
    1.36 +    "maxdepth"      : false,    // {int} Max depth of nested blocks (within functions)
    1.37 +    "maxstatements" : false,    // {int} Max number statements per function
    1.38 +    "maxcomplexity" : false,    // {int} Max cyclomatic complexity per function
    1.39 +    "maxlen"        : false,    // {int} Max number of characters per line
    1.40 +
    1.41 +    // Relaxing
    1.42 +    "asi"           : false,     // true: Tolerate Automatic Semicolon Insertion (no semicolons)
    1.43 +    "boss"          : false,     // true: Tolerate assignments where comparisons would be expected
    1.44 +    "debug"         : false,     // true: Allow debugger statements e.g. browser breakpoints.
    1.45 +    "eqnull"        : true,      // true: Tolerate use of `== null`
    1.46 +    "es5"           : false,     // true: Allow ES5 syntax (ex: getters and setters)
    1.47 +    "esnext"        : false,     // true: Allow ES.next (ES6) syntax (ex: `const`)
    1.48 +    "moz"           : true,      // true: Allow Mozilla specific syntax (extends and overrides esnext features)
    1.49 +                                 // (ex: `for each`, multiple try/catch, function expression…)
    1.50 +    "evil"          : false,     // true: Tolerate use of `eval` and `new Function()`
    1.51 +    "expr"          : false,     // true: Tolerate `ExpressionStatement` as Programs
    1.52 +    "funcscope"     : false,     // true: Tolerate defining variables inside control statements"
    1.53 +    "globalstrict"  : true,      // true: Allow global "use strict" (also enables 'strict')
    1.54 +    "iterator"      : false,     // true: Tolerate using the `__iterator__` property
    1.55 +    "lastsemic"     : false,     // true: Tolerate omitting a semicolon for the last statement of a 1-line block
    1.56 +    "laxbreak"      : true,      // true: Tolerate possibly unsafe line breakings
    1.57 +    "laxcomma"      : false,     // true: Tolerate comma-first style coding
    1.58 +    "loopfunc"      : false,     // true: Tolerate functions being defined in loops
    1.59 +    "multistr"      : false,     // true: Tolerate multi-line strings
    1.60 +    "proto"         : true,      // true: Tolerate using the `__proto__` property
    1.61 +    "scripturl"     : false,     // true: Tolerate script-targeted URLs
    1.62 +    "smarttabs"     : false,     // true: Tolerate mixed tabs/spaces when used for alignment
    1.63 +    "shadow"        : false,     // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
    1.64 +    "sub"           : false,     // true: Tolerate using `[]` notation when it can still be expressed in dot notation
    1.65 +    "supernew"      : false,     // true: Tolerate `new function () { ... };` and `new Object;`
    1.66 +    "validthis"     : true,      // true: Tolerate using this in a non-constructor function
    1.67 +
    1.68 +    // Environments
    1.69 +    "browser"       : false,    // Web Browser (window, document, etc)
    1.70 +    "couch"         : false,    // CouchDB
    1.71 +    "devel"         : true,     // Development/debugging (alert, confirm, etc)
    1.72 +    "dojo"          : false,    // Dojo Toolkit
    1.73 +    "jquery"        : false,    // jQuery
    1.74 +    "mootools"      : false,    // MooTools
    1.75 +    "node"          : false,    // Node.js
    1.76 +    "nonstandard"   : false,    // Widely adopted globals (escape, unescape, etc)
    1.77 +    "prototypejs"   : false,    // Prototype and Scriptaculous
    1.78 +    "rhino"         : false,    // Rhino
    1.79 +    "worker"        : true,     // Web Workers
    1.80 +    "wsh"           : false,    // Windows Scripting Host
    1.81 +    "yui"           : false,    // Yahoo User Interface
    1.82 +
    1.83 +    // Legacy
    1.84 +    "nomen"         : false,    // true: Prohibit dangling `_` in variables
    1.85 +    "onevar"        : false,    // true: Allow only one `var` statement per function
    1.86 +    "passfail"      : false,    // true: Stop on first error
    1.87 +    "white"         : false,    // true: Check against strict whitespace and indentation rules
    1.88 +
    1.89 +    // Custom Globals
    1.90 +    "predef"        : [ ],      // additional predefined global variables
    1.91 +
    1.92 +    "globals": {
    1.93 +        "ChromeWorker": false,
    1.94 +        "Components": false,
    1.95 +        "DOMRequestIpcHelper": false,
    1.96 +        "ObjectWrapper": false,
    1.97 +        "PhoneNumberUtils": false,
    1.98 +        "RILNetworkInterface": false,
    1.99 +        "Services": false,
   1.100 +        "Uint8Array": false,
   1.101 +        "WAP": false,
   1.102 +        "XPCOMUtils": false,
   1.103 +        "cpmm": false,
   1.104 +        "dump": false,
   1.105 +        "gAudioManager": false,
   1.106 +        "gMessageManager": false,
   1.107 +        "gMobileMessageDatabaseService": false,
   1.108 +        "gMobileMessageService": false,
   1.109 +        "gNetworkManager": false,
   1.110 +        "gPowerManagerService": false,
   1.111 +        "gSettingsService": false,
   1.112 +        "gSmsService": false,
   1.113 +        "gSystemMessenger": false,
   1.114 +        "gSystemWorkerManager": false,
   1.115 +        "gTimeService": false,
   1.116 +        "gUUIDGenerator": false,
   1.117 +        "ppmm": true,
   1.118 +
   1.119 +        "__end_guardian_for_easy_sorting__": false
   1.120 +    }
   1.121 +}

mercurial