diff options
author | Juanjo Diaz <juanjo.diaz@intopalo.com> | 2018-01-30 08:07:57 -0800 |
---|---|---|
committer | Juanjo Diaz <juanjo.diaz@intopalo.com> | 2018-01-31 07:38:29 -0800 |
commit | 9e1bd410aac1a754d86bde97f379f3c9b2e0f6d2 (patch) | |
tree | f0defbd7d75b3d7282b7224413c5286ab82934dd | |
parent | be8580558cceb990c641bbc021b6818b971781c8 (diff) | |
download | novnc-9e1bd410aac1a754d86bde97f379f3c9b2e0f6d2.tar.gz |
Remove jshint comments
-rw-r--r-- | app/ui.js | 3 | ||||
-rw-r--r-- | app/webutil.js | 3 | ||||
-rw-r--r-- | core/base64.js | 4 | ||||
-rw-r--r-- | core/des.js | 5 | ||||
-rw-r--r-- | core/display.js | 3 | ||||
-rw-r--r-- | core/input/keyboard.js | 3 | ||||
-rw-r--r-- | core/input/mouse.js | 3 | ||||
-rw-r--r-- | core/util/logging.js | 2 | ||||
-rw-r--r-- | core/websock.js | 3 | ||||
-rw-r--r-- | tests/test.display.js | 1 | ||||
-rw-r--r-- | tests/test.keyboard.js | 1 | ||||
-rw-r--r-- | tests/test.localization.js | 2 | ||||
-rw-r--r-- | tests/test.mouse.js | 1 | ||||
-rw-r--r-- | tests/test.rfb.js | 1 | ||||
-rw-r--r-- | tests/test.util.js | 2 | ||||
-rw-r--r-- | tests/test.websock.js | 1 | ||||
-rw-r--r-- | vendor/pako/lib/zlib/deflate.js | 4 |
17 files changed, 2 insertions, 40 deletions
@@ -8,9 +8,6 @@ * See README.md for usage and integration instructions. */ -/* jslint white: false, browser: true */ -/* global window, document.getElementById, Util, WebUtil, RFB, Display */ - import * as Log from '../core/util/logging.js'; import _, { l10n } from './localization.js'; import { isTouchDevice } from '../core/util/browsers.js'; diff --git a/app/webutil.js b/app/webutil.js index c10bc54..249a138 100644 --- a/app/webutil.js +++ b/app/webutil.js @@ -7,9 +7,6 @@ * See README.md for usage and integration instructions. */ -/*jslint bitwise: false, white: false, browser: true, devel: true */ -/*global Util, window, document */ - import { init_logging as main_init_logging } from '../core/util/logging.js'; // init log level reading the logging HTTP param diff --git a/core/base64.js b/core/base64.js index 3c48eca..5182c29 100644 --- a/core/base64.js +++ b/core/base64.js @@ -4,8 +4,6 @@ // From: http://hg.mozilla.org/mozilla-central/raw-file/ec10630b1a54/js/src/devtools/jint/sunspider/string-base64.js -/*jslint white: false */ -/*global console */ import * as Log from './util/logging.js'; export default { @@ -48,7 +46,6 @@ export default { }, /* Convert Base64 data to a string */ - /* jshint -W013 */ toBinaryTable : [ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, @@ -59,7 +56,6 @@ export default { -1,26,27,28, 29,30,31,32, 33,34,35,36, 37,38,39,40, 41,42,43,44, 45,46,47,48, 49,50,51,-1, -1,-1,-1,-1 ], - /* jshint +W013 */ decode: function (data, offset) { "use strict"; diff --git a/core/des.js b/core/des.js index 6268493..87dc516 100644 --- a/core/des.js +++ b/core/des.js @@ -75,13 +75,10 @@ * fine Java utilities: http://www.acme.com/java/ */ -/* jslint white: false */ - export default function DES(passwd) { "use strict"; // Tables, permutations, S-boxes, etc. - // jshint -W013 var PC2 = [13,16,10,23, 0, 4, 2,27,14, 5,20, 9,22,18,11, 3, 25, 7,15, 6,26,19,12, 1,40,51,30,36,46,54,29,39, 50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31 ], @@ -89,7 +86,6 @@ export default function DES(passwd) { z = 0x0, a,b,c,d,e,f, SP1,SP2,SP3,SP4,SP5,SP6,SP7,SP8, keys = []; - // jshint -W015 a=1<<16; b=1<<24; c=a|b; d=1<<2; e=1<<10; f=d|e; SP1 = [c|e,z|z,a|z,c|f,c|d,a|f,z|d,a|z,z|e,c|e,c|f,z|e,b|f,c|d,b|z,z|d, z|f,b|e,b|e,a|e,a|e,c|z,c|z,b|f,a|d,b|d,b|d,a|d,z|z,z|f,a|f,b|z, @@ -130,7 +126,6 @@ export default function DES(passwd) { c|z,b|d,b|e,z|f,a|e,a|d,c|d,c|e,z|f,z|z,z|z,c|d,b|d,b|e,a|f,a|z, a|f,a|z,c|e,z|e,z|d,c|d,z|e,a|f,b|e,z|d,b|d,c|z,c|d,b|z,a|z,b|f, z|z,c|f,a|d,b|d,c|z,b|e,b|f,z|z,c|f,a|e,a|e,z|f,z|f,a|d,b|z,c|e]; - // jshint +W013,+W015 // Set the key. function setKeys(keyBlock) { diff --git a/core/display.js b/core/display.js index 3b12f10..9915615 100644 --- a/core/display.js +++ b/core/display.js @@ -7,9 +7,6 @@ * See README.md for usage and integration instructions. */ -/*jslint browser: true, white: false */ -/*global Util, Base64, changeCursor */ - import * as Log from './util/logging.js'; import Base64 from "./base64.js"; diff --git a/core/input/keyboard.js b/core/input/keyboard.js index 1bf1a38..05fbbfb 100644 --- a/core/input/keyboard.js +++ b/core/input/keyboard.js @@ -5,9 +5,6 @@ * Licensed under MPL 2.0 or any later version (see LICENSE.txt) */ -/*jslint browser: true, white: false */ -/*global window, Util */ - import * as Log from '../util/logging.js'; import { stopEvent } from '../util/events.js'; import * as KeyboardUtil from "./util.js"; diff --git a/core/input/mouse.js b/core/input/mouse.js index eaf908a..8f181fc 100644 --- a/core/input/mouse.js +++ b/core/input/mouse.js @@ -5,9 +5,6 @@ * Licensed under MPL 2.0 or any later version (see LICENSE.txt) */ -/*jslint browser: true, white: false */ -/*global window, Util */ - import * as Log from '../util/logging.js'; import { isTouchDevice } from '../util/browsers.js'; import { setCapture, stopEvent, getPointerEvent } from '../util/events.js'; diff --git a/core/util/logging.js b/core/util/logging.js index 342bfa7..bcff16a 100644 --- a/core/util/logging.js +++ b/core/util/logging.js @@ -26,7 +26,6 @@ export function init_logging (level) { Debug = Info = Warn = Error = function (msg) {}; if (typeof window.console !== "undefined") { - /* jshint -W086 */ switch (level) { case 'debug': Debug = console.debug.bind(window.console); @@ -41,7 +40,6 @@ export function init_logging (level) { default: throw new Error("invalid logging type '" + level + "'"); } - /* jshint +W086 */ } }; export function get_logging () { diff --git a/core/websock.js b/core/websock.js index 03909bc..a495915 100644 --- a/core/websock.js +++ b/core/websock.js @@ -14,9 +14,6 @@ import * as Log from './util/logging.js'; -/*jslint browser: true, bitwise: true */ -/*global Util*/ - export default function Websock() { "use strict"; diff --git a/tests/test.display.js b/tests/test.display.js index 2e8f90e..5a46f18 100644 --- a/tests/test.display.js +++ b/tests/test.display.js @@ -1,4 +1,3 @@ -/* jshint expr: true */ var expect = chai.expect; import Base64 from '../core/base64.js'; diff --git a/tests/test.keyboard.js b/tests/test.keyboard.js index 513d797..cb273c3 100644 --- a/tests/test.keyboard.js +++ b/tests/test.keyboard.js @@ -12,7 +12,6 @@ function isEdge() { return navigator && !!(/edge/i).exec(navigator.userAgent); } -/* jshint newcap: false, expr: true */ describe('Key Event Handling', function() { "use strict"; diff --git a/tests/test.localization.js b/tests/test.localization.js index 339144a..bcaafcf 100644 --- a/tests/test.localization.js +++ b/tests/test.localization.js @@ -1,5 +1,3 @@ -/* jshint expr: true */ - var assert = chai.assert; var expect = chai.expect; diff --git a/tests/test.mouse.js b/tests/test.mouse.js index 248a933..efc2eed 100644 --- a/tests/test.mouse.js +++ b/tests/test.mouse.js @@ -6,7 +6,6 @@ import sinon from '../vendor/sinon.js'; import Mouse from '../core/input/mouse.js'; import * as eventUtils from '../core/util/events.js'; -/* jshint newcap: false, expr: true */ describe('Mouse Event Handling', function() { "use strict"; diff --git a/tests/test.rfb.js b/tests/test.rfb.js index 31a7f2d..8f5ee49 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -1,4 +1,3 @@ -/* jshint expr: true */ var assert = chai.assert; var expect = chai.expect; diff --git a/tests/test.util.js b/tests/test.util.js index 1eab1e9..4834543 100644 --- a/tests/test.util.js +++ b/tests/test.util.js @@ -1,5 +1,3 @@ -/* jshint expr: true */ - var assert = chai.assert; var expect = chai.expect; diff --git a/tests/test.websock.js b/tests/test.websock.js index 211ab60..106639a 100644 --- a/tests/test.websock.js +++ b/tests/test.websock.js @@ -1,4 +1,3 @@ -/* jshint expr: true */ var assert = chai.assert; var expect = chai.expect; diff --git a/vendor/pako/lib/zlib/deflate.js b/vendor/pako/lib/zlib/deflate.js index 0588e04..c51915e 100644 --- a/vendor/pako/lib/zlib/deflate.js +++ b/vendor/pako/lib/zlib/deflate.js @@ -280,7 +280,7 @@ function longest_match(s, cur_match) { * the 256th check will be made at strstart+258. */ do { - /*jshint noempty:false*/ + // Do nothing } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && @@ -892,7 +892,7 @@ function deflate_rle(s, flush) { if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) { strend = s.strstart + MAX_MATCH; do { - /*jshint noempty:false*/ + // Do nothing } while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && |