benjamine/frame-channels

View on GitHub
public/build/test-bundle.js

Summary

Maintainability
F
2 mos
Test Coverage

Function 6 has a Cognitive Complexity of 856 (exceeds 5 allowed). Consider refactoring.
Open

},{}],6:[function(require,module,exports){
(function (Buffer){
(function (global, module) {

  var exports = module.exports;
Severity: Minor
Found in public/build/test-bundle.js - About 2 wks to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function 2 has a Cognitive Complexity of 352 (exceeds 5 allowed). Consider refactoring.
Open

},{"./channel":8,"./channel-iframe":7,"./util/globals":10}],2:[function(require,module,exports){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
Severity: Minor
Found in public/build/test-bundle.js - About 1 wk to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File test-bundle.js has 2422 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*
* mocha's bdd syntax is inspired in RSpec
*   please read: http://betterspecs.org/
*/
Severity: Major
Found in public/build/test-bundle.js - About 6 days to fix

    Function 2 has 925 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"./channel":8,"./channel-iframe":7,"./util/globals":10}],2:[function(require,module,exports){
    /*!
     * The buffer module from node.js, for the browser.
     *
     * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
    Severity: Major
    Found in public/build/test-bundle.js - About 4 days to fix

      Function 6 has 808 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],6:[function(require,module,exports){
      (function (Buffer){
      (function (global, module) {
      
        var exports = module.exports;
      Severity: Major
      Found in public/build/test-bundle.js - About 4 days to fix

        Function 5 has a Cognitive Complexity of 124 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],5:[function(require,module,exports){
        // Copyright Joyent, Inc. and other Node contributors.
        //
        // Permission is hereby granted, free of charge, to any person obtaining a
        // copy of this software and associated documentation files (the
        Severity: Minor
        Found in public/build/test-bundle.js - About 2 days to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 4 has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],4:[function(require,module,exports){
        exports.read = function(buffer, offset, isLE, mLen, nBytes) {
          var e, m,
              eLen = nBytes * 8 - mLen - 1,
              eMax = (1 << eLen) - 1,
        Severity: Minor
        Found in public/build/test-bundle.js - About 1 day to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function 5 has 211 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{}],5:[function(require,module,exports){
        // Copyright Joyent, Inc. and other Node contributors.
        //
        // Permission is hereby granted, free of charge, to any person obtaining a
        // copy of this software and associated documentation files (the
        Severity: Major
        Found in public/build/test-bundle.js - About 1 day to fix

          Function json has 164 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            var json = (function () {
              "use strict";
          
              if ('object' == typeof JSON && JSON.parse && JSON.stringify) {
                return {
          Severity: Major
          Found in public/build/test-bundle.js - About 6 hrs to fix

            Function i has 150 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function i (obj, showHidden, depth) {
                var seen = [];
            
                function stylize (str) {
                  return str;
            Severity: Major
            Found in public/build/test-bundle.js - About 6 hrs to fix

              Function format has 143 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function format (value, recurseTimes) {
                    // Provide a hook for user-specified inspect functions.
                    // Check that value is an object with an inspect function on it
                    if (value && typeof value.inspect === 'function' &&
                        // Filter out the util module, it's inspect function is special
              Severity: Major
              Found in public/build/test-bundle.js - About 5 hrs to fix

                Function 7 has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{"buffer":2}],7:[function(require,module,exports){
                /*
                * mocha's bdd syntax is inspired in RSpec
                *   please read: http://betterspecs.org/
                */
                Severity: Major
                Found in public/build/test-bundle.js - About 4 hrs to fix

                  Function 8 has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{"./util/echo-iframe-channel":9,"./util/globals":10}],8:[function(require,module,exports){
                  /*
                  * mocha's bdd syntax is inspired in RSpec
                  *   please read: http://betterspecs.org/
                  */
                  Severity: Major
                  Found in public/build/test-bundle.js - About 4 hrs to fix

                    Function 3 has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{"base64-js":3,"ieee754":4}],3:[function(require,module,exports){
                    var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
                    
                    ;(function (exports) {
                        'use strict';
                    Severity: Major
                    Found in public/build/test-bundle.js - About 3 hrs to fix

                      Function 4 has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{}],4:[function(require,module,exports){
                      exports.read = function(buffer, offset, isLE, mLen, nBytes) {
                        var e, m,
                            eLen = nBytes * 8 - mLen - 1,
                            eMax = (1 << eLen) - 1,
                      Severity: Major
                      Found in public/build/test-bundle.js - About 2 hrs to fix

                        Function str has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function str(key, holder) {
                        
                          // Produce a string from holder[key].
                        
                                var i,          // The loop counter.
                        Severity: Major
                        Found in public/build/test-bundle.js - About 2 hrs to fix

                          Function output has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                var output = map($keys, function (key) {
                                  var name, str;
                                  if (value.__lookupGetter__) {
                                    if (value.__lookupGetter__(key)) {
                                      if (value.__lookupSetter__(key)) {
                          Severity: Major
                          Found in public/build/test-bundle.js - About 2 hrs to fix

                            Function e has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                            Open

                            (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                            Severity: Minor
                            Found in public/build/test-bundle.js - About 2 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function write has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Buffer.prototype.write = function (string, offset, length, encoding) {
                              // Support both (string, offset, length, encoding)
                              // and the legacy (string, encoding, offset, length)
                              if (isFinite(offset)) {
                                if (!isFinite(length)) {
                            Severity: Minor
                            Found in public/build/test-bundle.js - About 2 hrs to fix

                              Function _augment has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Buffer._augment = function (arr) {
                                arr._isBuffer = true
                              
                                // save reference to original Uint8Array get/set methods before overwriting
                                arr._get = arr.get
                              Severity: Minor
                              Found in public/build/test-bundle.js - About 1 hr to fix

                                Function emit has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                EventEmitter.prototype.emit = function(type) {
                                  var er, handler, len, args, i, listeners;
                                
                                  if (!this._events)
                                    this._events = {};
                                Severity: Minor
                                Found in public/build/test-bundle.js - About 1 hr to fix

                                  Function Buffer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function Buffer (subject, encoding, noZero) {
                                    if (!(this instanceof Buffer))
                                      return new Buffer(subject, encoding, noZero)
                                  
                                    var type = typeof subject
                                  Severity: Minor
                                  Found in public/build/test-bundle.js - About 1 hr to fix

                                    Function write has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
                                      var e, m, c,
                                          eLen = nBytes * 8 - mLen - 1,
                                          eMax = (1 << eLen) - 1,
                                          eBias = eMax >> 1,
                                    Severity: Minor
                                    Found in public/build/test-bundle.js - About 1 hr to fix

                                      Function 9 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      },{"./util/globals":10,"./util/mock-window":11}],9:[function(require,module,exports){
                                      require('./globals');
                                      
                                      var instanceCount = 0;
                                      
                                      
                                      Severity: Minor
                                      Found in public/build/test-bundle.js - About 1 hr to fix

                                        Function toString has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        Buffer.prototype.toString = function (encoding, start, end) {
                                          var self = this
                                        
                                          encoding = String(encoding || 'utf8').toLowerCase()
                                          start = Number(start) || 0
                                        Severity: Minor
                                        Found in public/build/test-bundle.js - About 1 hr to fix

                                          Function parse has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              JSON.parse = function (text, reviver) {
                                              // The parse method takes a text and an optional reviver function, and returns
                                              // a JavaScript value if the text is a valid JSON text.
                                          
                                                  var j;
                                          Severity: Minor
                                          Found in public/build/test-bundle.js - About 1 hr to fix

                                            Function addListener has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                            EventEmitter.prototype.addListener = function(type, listener) {
                                              var m;
                                            
                                              if (!isFunction(listener))
                                                throw TypeError('listener must be a function');
                                            Severity: Minor
                                            Found in public/build/test-bundle.js - About 1 hr to fix

                                              Function property has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                Assertion.prototype.property = function (name, val) {
                                                  if (this.flags.own) {
                                                    this.assert(
                                                        Object.prototype.hasOwnProperty.call(this.obj, name)
                                                      , function(){ return 'expected ' + i(this.obj) + ' to have own property ' + i(name) }
                                              Severity: Minor
                                              Found in public/build/test-bundle.js - About 1 hr to fix

                                                Function removeListener has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                EventEmitter.prototype.removeListener = function(type, listener) {
                                                  var list, position, length, i;
                                                
                                                  if (!isFunction(listener))
                                                    throw TypeError('listener must be a function');
                                                Severity: Minor
                                                Found in public/build/test-bundle.js - About 1 hr to fix

                                                  Function 11 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                  },{"expect.js":6}],11:[function(require,module,exports){
                                                  
                                                  var EventEmitter = require('events').EventEmitter;
                                                  
                                                  var instanceCount = 0;
                                                  Severity: Minor
                                                  Found in public/build/test-bundle.js - About 1 hr to fix

                                                    Function Assertion has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                      function Assertion (obj, flag, parent) {
                                                        this.obj = obj;
                                                        this.flags = {};
                                                    
                                                        if (undefined != parent) {
                                                    Severity: Minor
                                                    Found in public/build/test-bundle.js - About 1 hr to fix

                                                      Function create has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      function create(options) {
                                                        // create echo src-less iframe to talk to
                                                        var iframeHtml;
                                                        options = options || {};
                                                        if (!options.id) {
                                                      Severity: Minor
                                                      Found in public/build/test-bundle.js - About 1 hr to fix

                                                        Function objEquiv has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                          function objEquiv (a, b) {
                                                            if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
                                                              return false;
                                                            // an identical "prototype" property.
                                                            if (a.prototype !== b.prototype) return false;
                                                        Severity: Minor
                                                        Found in public/build/test-bundle.js - About 1 hr to fix

                                                          Function keys has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                            Assertion.prototype.keys = function ($keys) {
                                                              var str
                                                                , ok = true;
                                                          
                                                              $keys = isArray($keys)
                                                          Severity: Minor
                                                          Found in public/build/test-bundle.js - About 1 hr to fix

                                                            Function uint8ToBase64 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                function uint8ToBase64 (uint8) {
                                                                    var i,
                                                                        extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
                                                                        output = "",
                                                                        temp, length
                                                            Severity: Minor
                                                            Found in public/build/test-bundle.js - About 1 hr to fix

                                                              Function slice has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                              Buffer.prototype.slice = function (start, end) {
                                                                var len = this.length
                                                                start = ~~start
                                                                end = end === undefined ? len : ~~end
                                                              
                                                              
                                                              Severity: Minor
                                                              Found in public/build/test-bundle.js - About 1 hr to fix

                                                                Function reduce has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                  function reduce (arr, fun) {
                                                                    if (Array.prototype.reduce) {
                                                                      return Array.prototype.reduce.apply(
                                                                          arr
                                                                        , Array.prototype.slice.call(arguments, 1)
                                                                Severity: Minor
                                                                Found in public/build/test-bundle.js - About 1 hr to fix

                                                                  Function removeAllListeners has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                  EventEmitter.prototype.removeAllListeners = function(type) {
                                                                    var key, listeners;
                                                                  
                                                                    if (!this._events)
                                                                      return this;
                                                                  Severity: Minor
                                                                  Found in public/build/test-bundle.js - About 1 hr to fix

                                                                    Function byteLength has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                    Buffer.byteLength = function (str, encoding) {
                                                                      var ret
                                                                      str = str.toString()
                                                                      switch (encoding || 'utf8') {
                                                                        case 'hex':
                                                                    Severity: Minor
                                                                    Found in public/build/test-bundle.js - About 1 hr to fix

                                                                      Function readUInt32 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                      function readUInt32 (buf, offset, littleEndian, noAssert) {
                                                                        if (!noAssert) {
                                                                          assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                          assert(offset !== undefined && offset !== null, 'missing offset')
                                                                          assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
                                                                      Severity: Minor
                                                                      Found in public/build/test-bundle.js - About 1 hr to fix

                                                                        Function b64ToByteArray has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            function b64ToByteArray (b64) {
                                                                                var i, j, l, tmp, placeHolders, arr
                                                                        
                                                                                if (b64.length % 4 > 0) {
                                                                                    throw new Error('Invalid string. Length must be a multiple of 4')
                                                                        Severity: Minor
                                                                        Found in public/build/test-bundle.js - About 1 hr to fix

                                                                          Function read has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                          exports.read = function(buffer, offset, isLE, mLen, nBytes) {
                                                                            var e, m,
                                                                                eLen = nBytes * 8 - mLen - 1,
                                                                                eMax = (1 << eLen) - 1,
                                                                                eBias = eMax >> 1,
                                                                          Severity: Minor
                                                                          Found in public/build/test-bundle.js - About 1 hr to fix

                                                                            Function throwException has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                              Assertion.prototype.throwException = function (fn) {
                                                                                expect(this.obj).to.be.a('function');
                                                                            
                                                                                var thrown = false
                                                                                  , not = this.flags.not;
                                                                            Severity: Minor
                                                                            Found in public/build/test-bundle.js - About 1 hr to fix

                                                                              Function 9 has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                              },{"./util/globals":10,"./util/mock-window":11}],9:[function(require,module,exports){
                                                                              require('./globals');
                                                                              
                                                                              var instanceCount = 0;
                                                                              
                                                                              
                                                                              Severity: Minor
                                                                              Found in public/build/test-bundle.js - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Function write has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                              exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
                                                                              Severity: Minor
                                                                              Found in public/build/test-bundle.js - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                            if (Assertion.prototype.hasOwnProperty(fn) && fn != name) {
                                                                                              this[name][fn] = bind(assertion[fn], assertion);
                                                                                            }
                                                                                Severity: Major
                                                                                Found in public/build/test-bundle.js - About 45 mins to fix

                                                                                  Function 10 has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                                  Open

                                                                                  },{"./globals":10}],10:[function(require,module,exports){
                                                                                  (function (global){
                                                                                  
                                                                                  global.when = function(){
                                                                                    var args = Array.prototype.slice.apply(arguments);
                                                                                  Severity: Minor
                                                                                  Found in public/build/test-bundle.js - About 45 mins to fix

                                                                                  Cognitive Complexity

                                                                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                  A method's cognitive complexity is based on a few simple rules:

                                                                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                  • Code is considered more complex for each "break in the linear flow of the code"
                                                                                  • Code is considered more complex when "flow breaking structures are nested"

                                                                                  Further reading

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                                          if (v) {
                                                                                                              partial.push(quote(k) + (gap ? ': ' : ':') + v);
                                                                                                          }
                                                                                  Severity: Major
                                                                                  Found in public/build/test-bundle.js - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                            if (v) {
                                                                                                                partial.push(quote(k) + (gap ? ': ' : ':') + v);
                                                                                                            }
                                                                                    Severity: Major
                                                                                    Found in public/build/test-bundle.js - About 45 mins to fix

                                                                                      Function writeDouble has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                      function writeDouble (buf, value, offset, littleEndian, noAssert) {
                                                                                      Severity: Minor
                                                                                      Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                        Function read has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                        exports.read = function(buffer, offset, isLE, mLen, nBytes) {
                                                                                        Severity: Minor
                                                                                        Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                          Function writeUInt16 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                          Open

                                                                                          function writeUInt16 (buf, value, offset, littleEndian, noAssert) {
                                                                                          Severity: Minor
                                                                                          Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                            Function writeInt32 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                            Open

                                                                                            function writeInt32 (buf, value, offset, littleEndian, noAssert) {
                                                                                            Severity: Minor
                                                                                            Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                              Function writeUInt32 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                              Open

                                                                                              function writeUInt32 (buf, value, offset, littleEndian, noAssert) {
                                                                                              Severity: Minor
                                                                                              Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                                Function writeFloat has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                Open

                                                                                                function writeFloat (buf, value, offset, littleEndian, noAssert) {
                                                                                                Severity: Minor
                                                                                                Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                                  Function writeInt16 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                  function writeInt16 (buf, value, offset, littleEndian, noAssert) {
                                                                                                  Severity: Minor
                                                                                                  Found in public/build/test-bundle.js - About 35 mins to fix

                                                                                                    Avoid too many return statements within this function.
                                                                                                    Open

                                                                                                            return stylize("["+value.toString()+"]", 'Error');
                                                                                                    Severity: Major
                                                                                                    Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                      Avoid too many return statements within this function.
                                                                                                      Open

                                                                                                              return braces[0] + base + braces[1];
                                                                                                      Severity: Major
                                                                                                      Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                        Avoid too many return statements within this function.
                                                                                                        Open

                                                                                                              return false;
                                                                                                        Severity: Major
                                                                                                        Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                          Avoid too many return statements within this function.
                                                                                                          Open

                                                                                                              return true;
                                                                                                          Severity: Major
                                                                                                          Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                            Avoid too many return statements within this function.
                                                                                                            Open

                                                                                                                      return stylize('[Object]', 'special');
                                                                                                            Severity: Major
                                                                                                            Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                              Avoid too many return statements within this function.
                                                                                                              Open

                                                                                                                    return actual.getTime() === expected.getTime();
                                                                                                              Severity: Major
                                                                                                              Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                Avoid too many return statements within this function.
                                                                                                                Open

                                                                                                                      return false;
                                                                                                                Severity: Major
                                                                                                                Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                  Avoid too many return statements within this function.
                                                                                                                  Open

                                                                                                                            return stylize('[Function' + name + ']', 'special');
                                                                                                                  Severity: Major
                                                                                                                  Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                    Avoid too many return statements within this function.
                                                                                                                    Open

                                                                                                                                return code - LOWER + 26
                                                                                                                    Severity: Major
                                                                                                                    Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                      Avoid too many return statements within this function.
                                                                                                                      Open

                                                                                                                                return stylize('' + value, 'regexp');
                                                                                                                      Severity: Major
                                                                                                                      Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                        Avoid too many return statements within this function.
                                                                                                                        Open

                                                                                                                              return output;
                                                                                                                        Severity: Major
                                                                                                                        Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                          Avoid too many return statements within this function.
                                                                                                                          Open

                                                                                                                                    return stylize('' + value, 'regexp');
                                                                                                                          Severity: Major
                                                                                                                          Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                            Avoid too many return statements within this function.
                                                                                                                            Open

                                                                                                                                  return objEquiv(actual, expected);
                                                                                                                            Severity: Major
                                                                                                                            Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                              Avoid too many return statements within this function.
                                                                                                                              Open

                                                                                                                                       return false;
                                                                                                                              Severity: Major
                                                                                                                              Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                Open

                                                                                                                                        return false;
                                                                                                                                Severity: Major
                                                                                                                                Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                  Open

                                                                                                                                        return regExpEquiv(actual, expected);
                                                                                                                                  Severity: Major
                                                                                                                                  Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                    Open

                                                                                                                                                return code - UPPER
                                                                                                                                    Severity: Major
                                                                                                                                    Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                      Open

                                                                                                                                              return stylize(value.toUTCString(), 'date');
                                                                                                                                      Severity: Major
                                                                                                                                      Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                        Open

                                                                                                                                              return actual == expected;
                                                                                                                                        Severity: Major
                                                                                                                                        Found in public/build/test-bundle.js - About 30 mins to fix

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                                                                                                                                          /*
                                                                                                                                          * mocha's bdd syntax is inspired in RSpec
                                                                                                                                          *   please read: http://betterspecs.org/
                                                                                                                                          */
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 day to fix
                                                                                                                                          public/build/frame-channels.js on lines 1..1119

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 292.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function writeInt32 (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 6 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 836..854

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 173.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function writeInt16 (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 6 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 864..882

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 173.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function writeFloat (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 5 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 917..933

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 150.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function writeDouble (buf, value, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 5 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 892..907

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 150.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function readInt32 (buf, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                              assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 5 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 659..676

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 145.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function readInt16 (buf, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                              assert(offset + 1 < buf.length, 'Trying to read beyond buffer length')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 5 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 686..703

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 145.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            Assertion.prototype.greaterThan =
                                                                                                                                            Assertion.prototype.above = function (n) {
                                                                                                                                              this.assert(
                                                                                                                                                  this.obj > n
                                                                                                                                                , function(){ return 'expected ' + i(this.obj) + ' to be above ' + n }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 4 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 2017..2024

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 117.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            Assertion.prototype.lessThan =
                                                                                                                                            Assertion.prototype.below = function (n) {
                                                                                                                                              this.assert(
                                                                                                                                                  this.obj < n
                                                                                                                                                , function(){ return 'expected ' + i(this.obj) + ' to be below ' + n }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 4 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 2001..2008

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 117.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                              assert(offset + 3 < buf.length, 'trying to write beyond buffer length')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 762..768

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 91.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(value !== undefined && value !== null, 'missing value')
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                              assert(offset + 1 < buf.length, 'trying to write beyond buffer length')
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 791..797

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 91.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                          v = partial.length === 0 ? '[]' : gap ?
                                                                                                                                                              '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
                                                                                                                                                              '[' + partial.join(',') + ']';
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 2848..2850

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 78.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                      v = partial.length === 0 ? '{}' : gap ?
                                                                                                                                                          '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
                                                                                                                                                          '{' + partial.join(',') + '}';
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 2811..2813

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 78.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                    this.channel.subscribe(function(msg){
                                                                                                                                                      if (msg.ack) {
                                                                                                                                                        expect(msg.value).to.be('same thing');
                                                                                                                                                        got++;
                                                                                                                                                        if (got === 2) {
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 3054..3062

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 77.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                    this.channel2.subscribe(function(msg){
                                                                                                                                                      if (msg.ack) {
                                                                                                                                                        expect(msg.value).to.be('same thing');
                                                                                                                                                        got++;
                                                                                                                                                        if (got === 2) {
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 2 hrs to fix
                                                                                                                                          public/build/test-bundle.js on lines 3044..3052

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 77.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function readDouble (buf, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset + 7 < buf.length, 'Trying to read beyond buffer length')
                                                                                                                                            }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 713..720

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 70.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                          function readFloat (buf, offset, littleEndian, noAssert) {
                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
                                                                                                                                              assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
                                                                                                                                            }
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 730..737

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 70.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                      tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 1254..1254

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 65.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                      tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 1264..1264

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 65.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                beforeEach(function(done){
                                                                                                                                                  this.channel.iframe.ready().then(function(){
                                                                                                                                                    done();
                                                                                                                                                  }, function(err){
                                                                                                                                                    done.fail(err);
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 3074..3080

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 62.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                it('reports when the iframe channel is ready', function(done){
                                                                                                                                                  this.channel.iframe.ready().then(function(){
                                                                                                                                                    done();
                                                                                                                                                  }, function(err){
                                                                                                                                                    done.fail(err);
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 3098..3104

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 62.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                this.window2.addEventListener('message', function(e) {
                                                                                                                                                  expect(e.data.hello).to.be('world');
                                                                                                                                                  done();
                                                                                                                                                });
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 3154..3157

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 55.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                                this.window2.addEventListener('message', function(e) {
                                                                                                                                                  expect(e.data.value).to.be('hello world');
                                                                                                                                                  done();
                                                                                                                                                });
                                                                                                                                          Severity: Major
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 1 hr to fix
                                                                                                                                          public/build/test-bundle.js on lines 3147..3150

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 55.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (end < 0) {
                                                                                                                                              end += len
                                                                                                                                              if (end < 0)
                                                                                                                                                end = 0
                                                                                                                                            } else if (end > len) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 50 mins to fix
                                                                                                                                          public/build/test-bundle.js on lines 515..521

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 52.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (start < 0) {
                                                                                                                                              start += len;
                                                                                                                                              if (start < 0)
                                                                                                                                                start = 0
                                                                                                                                            } else if (start > len) {
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 50 mins to fix
                                                                                                                                          public/build/test-bundle.js on lines 523..529

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 52.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(offset !== undefined && offset !== null, 'missing offset')
                                                                                                                                              assert(offset < this.length, 'Trying to read beyond buffer length')
                                                                                                                                            }
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 30 mins to fix
                                                                                                                                          public/build/test-bundle.js on lines 643..647

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 45.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                          Open

                                                                                                                                            if (!noAssert) {
                                                                                                                                              assert(offset !== undefined && offset !== null,
                                                                                                                                                  'missing offset')
                                                                                                                                              assert(offset < this.length, 'Trying to read beyond buffer length')
                                                                                                                                            }
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public/build/test-bundle.js and 1 other location - About 30 mins to fix
                                                                                                                                          public/build/test-bundle.js on lines 559..562

                                                                                                                                          Duplicated Code

                                                                                                                                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                          Tuning

                                                                                                                                          This issue has a mass of 45.

                                                                                                                                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                          Refactorings

                                                                                                                                          Further Reading

                                                                                                                                          There are no issues that match your filters.

                                                                                                                                          Category
                                                                                                                                          Status