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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 {
michael@0 2 // JSHint Default Configuration File (as on JSHint website)
michael@0 3 // See http://jshint.com/docs/ for more details
michael@0 4
michael@0 5 // Modify for RIL usage.
michael@0 6
michael@0 7 "maxerr" : 10000, // {int} Maximum error before stopping
michael@0 8
michael@0 9 // Enforcing
michael@0 10 "bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.)
michael@0 11 "camelcase" : false, // true: Identifiers must be in camelCase
michael@0 12 "curly" : false, // true: Require {} for every new block or scope
michael@0 13 "eqeqeq" : false, // true: Require triple equals (===) for comparison
michael@0 14 "forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty()
michael@0 15 "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
michael@0 16 //"indent" : 2, // {int} Number of spaces to use for indentation
michael@0 17 "latedef" : false, // true: Require variables/functions to be defined before being used
michael@0 18 "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
michael@0 19 "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
michael@0 20 "noempty" : false, // true: Prohibit use of empty blocks
michael@0 21 "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
michael@0 22 "plusplus" : false, // true: Prohibit use of `++` & `--`
michael@0 23 "quotmark" : false, // Quotation mark consistency:
michael@0 24 // false : do nothing (default)
michael@0 25 // true : ensure whatever is used is consistent
michael@0 26 // "single" : require single quotes
michael@0 27 // "double" : require double quotes
michael@0 28 "undef" : false, // true: Require all non-global variables to be declared (prevents global leaks)
michael@0 29 "unused" : false, // true: Require all defined variables be used
michael@0 30 "strict" : false, // true: Requires all functions run in ES5 Strict Mode
michael@0 31 "trailing" : false, // true: Prohibit trailing whitespaces
michael@0 32 "maxparams" : false, // {int} Max number of formal params allowed per function
michael@0 33 "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
michael@0 34 "maxstatements" : false, // {int} Max number statements per function
michael@0 35 "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
michael@0 36 "maxlen" : false, // {int} Max number of characters per line
michael@0 37
michael@0 38 // Relaxing
michael@0 39 "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
michael@0 40 "boss" : false, // true: Tolerate assignments where comparisons would be expected
michael@0 41 "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
michael@0 42 "eqnull" : true, // true: Tolerate use of `== null`
michael@0 43 "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
michael@0 44 "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
michael@0 45 "moz" : true, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
michael@0 46 // (ex: `for each`, multiple try/catch, function expression…)
michael@0 47 "evil" : false, // true: Tolerate use of `eval` and `new Function()`
michael@0 48 "expr" : false, // true: Tolerate `ExpressionStatement` as Programs
michael@0 49 "funcscope" : false, // true: Tolerate defining variables inside control statements"
michael@0 50 "globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
michael@0 51 "iterator" : false, // true: Tolerate using the `__iterator__` property
michael@0 52 "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
michael@0 53 "laxbreak" : true, // true: Tolerate possibly unsafe line breakings
michael@0 54 "laxcomma" : false, // true: Tolerate comma-first style coding
michael@0 55 "loopfunc" : false, // true: Tolerate functions being defined in loops
michael@0 56 "multistr" : false, // true: Tolerate multi-line strings
michael@0 57 "proto" : true, // true: Tolerate using the `__proto__` property
michael@0 58 "scripturl" : false, // true: Tolerate script-targeted URLs
michael@0 59 "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
michael@0 60 "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
michael@0 61 "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
michael@0 62 "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
michael@0 63 "validthis" : true, // true: Tolerate using this in a non-constructor function
michael@0 64
michael@0 65 // Environments
michael@0 66 "browser" : false, // Web Browser (window, document, etc)
michael@0 67 "couch" : false, // CouchDB
michael@0 68 "devel" : true, // Development/debugging (alert, confirm, etc)
michael@0 69 "dojo" : false, // Dojo Toolkit
michael@0 70 "jquery" : false, // jQuery
michael@0 71 "mootools" : false, // MooTools
michael@0 72 "node" : false, // Node.js
michael@0 73 "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
michael@0 74 "prototypejs" : false, // Prototype and Scriptaculous
michael@0 75 "rhino" : false, // Rhino
michael@0 76 "worker" : true, // Web Workers
michael@0 77 "wsh" : false, // Windows Scripting Host
michael@0 78 "yui" : false, // Yahoo User Interface
michael@0 79
michael@0 80 // Legacy
michael@0 81 "nomen" : false, // true: Prohibit dangling `_` in variables
michael@0 82 "onevar" : false, // true: Allow only one `var` statement per function
michael@0 83 "passfail" : false, // true: Stop on first error
michael@0 84 "white" : false, // true: Check against strict whitespace and indentation rules
michael@0 85
michael@0 86 // Custom Globals
michael@0 87 "predef" : [ ], // additional predefined global variables
michael@0 88
michael@0 89 "globals": {
michael@0 90 "ChromeWorker": false,
michael@0 91 "Components": false,
michael@0 92 "DOMRequestIpcHelper": false,
michael@0 93 "ObjectWrapper": false,
michael@0 94 "PhoneNumberUtils": false,
michael@0 95 "RILNetworkInterface": false,
michael@0 96 "Services": false,
michael@0 97 "Uint8Array": false,
michael@0 98 "WAP": false,
michael@0 99 "XPCOMUtils": false,
michael@0 100 "cpmm": false,
michael@0 101 "dump": false,
michael@0 102 "gAudioManager": false,
michael@0 103 "gMessageManager": false,
michael@0 104 "gMobileMessageDatabaseService": false,
michael@0 105 "gMobileMessageService": false,
michael@0 106 "gNetworkManager": false,
michael@0 107 "gPowerManagerService": false,
michael@0 108 "gSettingsService": false,
michael@0 109 "gSmsService": false,
michael@0 110 "gSystemMessenger": false,
michael@0 111 "gSystemWorkerManager": false,
michael@0 112 "gTimeService": false,
michael@0 113 "gUUIDGenerator": false,
michael@0 114 "ppmm": true,
michael@0 115
michael@0 116 "__end_guardian_for_easy_sorting__": false
michael@0 117 }
michael@0 118 }

mercurial