appbaseio/mirage

View on GitHub
assets/vendor/urlsafe-base64.bundle.js

Summary

Maintainability
F
1 mo
Test Coverage

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

},{}],2:[function(require,module,exports){
(function (global){
/*!
 * The buffer module from node.js, for the browser.
 *
Severity: Minor
Found in assets/vendor/urlsafe-base64.bundle.js - About 3 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 1389 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{}],2:[function(require,module,exports){
(function (global){
/*!
 * The buffer module from node.js, for the browser.
 *
Severity: Major
Found in assets/vendor/urlsafe-base64.bundle.js - About 6 days to fix

    File urlsafe-base64.bundle.js has 1584 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){
    'use strict'
    
    exports.byteLength = byteLength
    exports.toByteArray = toByteArray
    Severity: Major
    Found in assets/vendor/urlsafe-base64.bundle.js - About 4 days to fix

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

      },{"base64-js":1,"ieee754":3,"isarray":4}],3:[function(require,module,exports){
      exports.read = function (buffer, offset, isLE, mLen, nBytes) {
        var e, m
        var eLen = nBytes * 8 - mLen - 1
        var eMax = (1 << eLen) - 1
      Severity: Minor
      Found in assets/vendor/urlsafe-base64.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 1 has a Cognitive Complexity of 26 (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){
      'use strict'
      
      exports.byteLength = byteLength
      exports.toByteArray = toByteArray
      Severity: Minor
      Found in assets/vendor/urlsafe-base64.bundle.js - About 3 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 1 has 83 lines of code (exceeds 25 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){
      'use strict'
      
      exports.byteLength = byteLength
      exports.toByteArray = toByteArray
      Severity: Major
      Found in assets/vendor/urlsafe-base64.bundle.js - About 3 hrs to fix

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

        },{"base64-js":1,"ieee754":3,"isarray":4}],3:[function(require,module,exports){
        exports.read = function (buffer, offset, isLE, mLen, nBytes) {
          var e, m
          var eLen = nBytes * 8 - mLen - 1
          var eMax = (1 << eLen) - 1
        Severity: Major
        Found in assets/vendor/urlsafe-base64.bundle.js - About 2 hrs to fix

          Function utf8Slice has 61 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function utf8Slice (buf, start, end) {
            end = Math.min(buf.length, end)
            var res = []
          
            var i = start
          Severity: Major
          Found in assets/vendor/urlsafe-base64.bundle.js - About 2 hrs to fix

            Function utf8ToBytes has 58 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function utf8ToBytes (string, units) {
              units = units || Infinity
              var codePoint
              var length = string.length
              var leadSurrogate = null
            Severity: Major
            Found in assets/vendor/urlsafe-base64.bundle.js - About 2 hrs to fix

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

              Buffer.prototype.write = function write (string, offset, length, encoding) {
                // Buffer#write(string)
                if (offset === undefined) {
                  encoding = 'utf8'
                  length = this.length
              Severity: Major
              Found in assets/vendor/urlsafe-base64.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 assets/vendor/urlsafe-base64.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 arrayIndexOf has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                  var indexSize = 1
                  var arrLength = arr.length
                  var valLength = val.length
                
                
                Severity: Minor
                Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                  Function fill has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  Buffer.prototype.fill = function fill (val, start, end, encoding) {
                    // Handle string cases:
                    if (typeof val === 'string') {
                      if (typeof start === 'string') {
                        encoding = start
                  Severity: Minor
                  Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                    Function compare has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                      if (!Buffer.isBuffer(target)) {
                        throw new TypeError('Argument must be a Buffer')
                      }
                    
                    
                    Severity: Minor
                    Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                      Function slowToString has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function slowToString (encoding, start, end) {
                        var loweredCase = false
                      
                        // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
                        // property of a typed array.
                      Severity: Minor
                      Found in assets/vendor/urlsafe-base64.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
                          var eLen = nBytes * 8 - mLen - 1
                          var eMax = (1 << eLen) - 1
                          var eBias = eMax >> 1
                        Severity: Minor
                        Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                          Function bidirectionalIndexOf has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                            // Empty buffer means no match
                            if (buffer.length === 0) return -1
                          
                            // Normalize byteOffset
                          Severity: Minor
                          Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

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

                            function byteLength (string, encoding) {
                              if (Buffer.isBuffer(string)) {
                                return string.length
                              }
                              if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
                            Severity: Minor
                            Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

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

                              Buffer.prototype.copy = function copy (target, targetStart, start, end) {
                                if (!start) start = 0
                                if (!end && end !== 0) end = this.length
                                if (targetStart >= target.length) targetStart = target.length
                                if (!targetStart) targetStart = 0
                              Severity: Minor
                              Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

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

                                },{}],5:[function(require,module,exports){
                                (function (Buffer){
                                /*!
                                 * urlsafe-base64
                                 */
                                Severity: Minor
                                Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

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

                                  Buffer.prototype.slice = function slice (start, end) {
                                    var len = this.length
                                    start = ~~start
                                    end = end === undefined ? len : ~~end
                                  
                                  
                                  Severity: Minor
                                  Found in assets/vendor/urlsafe-base64.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
                                      var eLen = nBytes * 8 - mLen - 1
                                      var eMax = (1 << eLen) - 1
                                      var eBias = eMax >> 1
                                    Severity: Minor
                                    Found in assets/vendor/urlsafe-base64.bundle.js - About 1 hr to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                  if (tempCodePoint > 0x7F) {
                                                    codePoint = tempCodePoint
                                                  }
                                      Severity: Major
                                      Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                              if ((units -= 3) < 0) break
                                        Severity: Major
                                        Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

                                          Avoid deeply nested control flow statements.
                                          Open

                                                  } else if (i + 1 === length) {
                                                    // unpaired lead
                                                    if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
                                                    continue
                                                  }
                                          Severity: Major
                                          Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                } else if (codePoint < 0x110000) {
                                                  if ((units -= 4) < 0) break
                                                  bytes.push(
                                                    codePoint >> 0x12 | 0xF0,
                                                    codePoint >> 0xC & 0x3F | 0x80,
                                            Severity: Major
                                            Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                          if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
                                                            codePoint = tempCodePoint
                                                          }
                                              Severity: Major
                                              Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

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

                                                function checkInt (buf, value, offset, ext, max, min) {
                                                Severity: Minor
                                                Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

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

                                                  function checkIEEE754 (buf, value, offset, ext, max, min) {
                                                  Severity: Minor
                                                  Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

                                                    Avoid deeply nested control flow statements.
                                                    Open

                                                              if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
                                                    Severity: Major
                                                    Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

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

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

                                                        Avoid deeply nested control flow statements.
                                                        Open

                                                                    if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
                                                                      codePoint = tempCodePoint
                                                                    }
                                                        Severity: Major
                                                        Found in assets/vendor/urlsafe-base64.bundle.js - About 45 mins to fix

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

                                                          function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
                                                          Severity: Minor
                                                          Found in assets/vendor/urlsafe-base64.bundle.js - About 35 mins to fix

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

                                                            Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
                                                            Severity: Minor
                                                            Found in assets/vendor/urlsafe-base64.bundle.js - About 35 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 assets/vendor/urlsafe-base64.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 assets/vendor/urlsafe-base64.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 assets/vendor/urlsafe-base64.bundle.js - About 35 mins to fix

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

                                                                    function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
                                                                    Severity: Minor
                                                                    Found in assets/vendor/urlsafe-base64.bundle.js - About 35 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                        if (y < x) return 1
                                                                      Severity: Major
                                                                      Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                        Avoid too many return statements within this function.
                                                                        Open

                                                                            return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
                                                                        Severity: Major
                                                                        Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                          Avoid too many return statements within this function.
                                                                          Open

                                                                                return fromArrayLike(that, obj.data)
                                                                          Severity: Major
                                                                          Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                            Avoid too many return statements within this function.
                                                                            Open

                                                                              if (x < y) return -1
                                                                            Severity: Major
                                                                            Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                              Avoid too many return statements within this function.
                                                                              Open

                                                                                      return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
                                                                              Severity: Major
                                                                              Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                                Avoid too many return statements within this function.
                                                                                Open

                                                                                        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
                                                                                Severity: Major
                                                                                Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                                  Avoid too many return statements within this function.
                                                                                  Open

                                                                                    return 0
                                                                                  Severity: Major
                                                                                  Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

                                                                                    Avoid too many return statements within this function.
                                                                                    Open

                                                                                        return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
                                                                                    Severity: Major
                                                                                    Found in assets/vendor/urlsafe-base64.bundle.js - About 30 mins to fix

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

                                                                                      Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
                                                                                        value = +value
                                                                                        offset = offset | 0
                                                                                        if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 4 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1568..1579

                                                                                      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 131.

                                                                                      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

                                                                                      Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
                                                                                        value = +value
                                                                                        offset = offset | 0
                                                                                        if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 4 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1555..1566

                                                                                      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 131.

                                                                                      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

                                                                                      Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
                                                                                        value = +value
                                                                                        offset = offset | 0
                                                                                        if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 4 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1449..1460

                                                                                      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 129.

                                                                                      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

                                                                                      Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
                                                                                        value = +value
                                                                                        offset = offset | 0
                                                                                        if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 4 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1436..1447

                                                                                      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 129.

                                                                                      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

                                                                                      Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                      
                                                                                        return ((this[offset]) |
                                                                                            (this[offset + 1] << 8) |
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 3 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1337..1344

                                                                                      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 98.

                                                                                      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

                                                                                      Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                      
                                                                                        return (this[offset]) |
                                                                                          (this[offset + 1] << 8) |
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 3 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1265..1272

                                                                                      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 98.

                                                                                      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 3 locations. Consider refactoring.
                                                                                      Open

                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                          this[offset] = (value >>> 24)
                                                                                          this[offset + 1] = (value >>> 16)
                                                                                          this[offset + 2] = (value >>> 8)
                                                                                          this[offset + 3] = (value & 0xff)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 2 other locations - About 3 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1585..1592
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1601..1608

                                                                                      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 97.

                                                                                      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 3 locations. Consider refactoring.
                                                                                      Open

                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                          this[offset] = (value >>> 24)
                                                                                          this[offset + 1] = (value >>> 16)
                                                                                          this[offset + 2] = (value >>> 8)
                                                                                          this[offset + 3] = (value & 0xff)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 2 other locations - About 3 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1488..1495
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1585..1592

                                                                                      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 97.

                                                                                      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 3 locations. Consider refactoring.
                                                                                      Open

                                                                                        if (Buffer.TYPED_ARRAY_SUPPORT) {
                                                                                          this[offset] = (value & 0xff)
                                                                                          this[offset + 1] = (value >>> 8)
                                                                                          this[offset + 2] = (value >>> 16)
                                                                                          this[offset + 3] = (value >>> 24)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 2 other locations - About 3 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1488..1495
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1601..1608

                                                                                      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 97.

                                                                                      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

                                                                                        while (--i >= 0 && (mul *= 0x100)) {
                                                                                          if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
                                                                                            sub = 1
                                                                                          }
                                                                                          this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 2 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1512..1517

                                                                                      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 81.

                                                                                      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

                                                                                        while (++i < byteLength && (mul *= 0x100)) {
                                                                                          if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
                                                                                            sub = 1
                                                                                          }
                                                                                          this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 2 hrs to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1535..1540

                                                                                      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 81.

                                                                                      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 = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 53..53

                                                                                      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 = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 63..63

                                                                                      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

                                                                                      function writeFloat (buf, value, offset, littleEndian, noAssert) {
                                                                                        if (!noAssert) {
                                                                                          checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
                                                                                        }
                                                                                        ieee754.write(buf, value, offset, littleEndian, 23, 4)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1633..1639

                                                                                      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 59.

                                                                                      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) {
                                                                                          checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
                                                                                        }
                                                                                        ieee754.write(buf, value, offset, littleEndian, 52, 8)
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1617..1623

                                                                                      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 59.

                                                                                      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 4 locations. Consider refactoring.
                                                                                      Open

                                                                                      Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                        return ieee754.read(this, offset, false, 23, 4)
                                                                                      }
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 3 other locations - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1355..1358
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1365..1368
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1370..1373

                                                                                      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 58.

                                                                                      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 4 locations. Consider refactoring.
                                                                                      Open

                                                                                      Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 4, this.length)
                                                                                        return ieee754.read(this, offset, true, 23, 4)
                                                                                      }
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 3 other locations - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1360..1363
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1365..1368
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1370..1373

                                                                                      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 58.

                                                                                      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 4 locations. Consider refactoring.
                                                                                      Open

                                                                                      Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 8, this.length)
                                                                                        return ieee754.read(this, offset, true, 52, 8)
                                                                                      }
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 3 other locations - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1355..1358
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1360..1363
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1370..1373

                                                                                      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 58.

                                                                                      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 4 locations. Consider refactoring.
                                                                                      Open

                                                                                      Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
                                                                                        if (!noAssert) checkOffset(offset, 8, this.length)
                                                                                        return ieee754.read(this, offset, false, 52, 8)
                                                                                      }
                                                                                      Severity: Major
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 3 other locations - About 1 hr to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1355..1358
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1360..1363
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1365..1368

                                                                                      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 58.

                                                                                      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) {
                                                                                          end = len
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 50 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1180..1185

                                                                                      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) {
                                                                                          start = len
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 50 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1187..1192

                                                                                      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) {
                                                                                          var limit = Math.pow(2, 8 * byteLength - 1)
                                                                                      
                                                                                          checkInt(this, value, offset, byteLength, limit - 1, -limit)
                                                                                        }
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 50 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1502..1506

                                                                                      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 51.

                                                                                      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) {
                                                                                          var limit = Math.pow(2, 8 * byteLength - 1)
                                                                                      
                                                                                          checkInt(this, value, offset, byteLength, limit - 1, -limit)
                                                                                        }
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 50 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1525..1529

                                                                                      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 51.

                                                                                      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

                                                                                        for (var i = 0, len = Math.min(x, y); i < len; ++i) {
                                                                                          if (a[i] !== b[i]) {
                                                                                            x = a[i]
                                                                                            y = b[i]
                                                                                            break
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 35 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 756..762

                                                                                      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 46.

                                                                                      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

                                                                                        for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 35 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1987..1987

                                                                                      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 46.

                                                                                      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

                                                                                        for (var i = 0; i < len; ++i) {
                                                                                          if (thisCopy[i] !== targetCopy[i]) {
                                                                                            x = thisCopy[i]
                                                                                            y = targetCopy[i]
                                                                                            break
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 35 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 463..469

                                                                                      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 46.

                                                                                      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

                                                                                        for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 35 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1991..1991

                                                                                      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 46.

                                                                                      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) {
                                                                                          var maxBytes = Math.pow(2, 8 * byteLength) - 1
                                                                                          checkInt(this, value, offset, byteLength, maxBytes, 0)
                                                                                        }
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 30 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1385..1388

                                                                                      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) {
                                                                                          var maxBytes = Math.pow(2, 8 * byteLength) - 1
                                                                                          checkInt(this, value, offset, byteLength, maxBytes, 0)
                                                                                        }
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 30 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1404..1407

                                                                                      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

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

                                                                                        for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 30 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1926..1926

                                                                                      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

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

                                                                                        for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
                                                                                      Severity: Minor
                                                                                      Found in assets/vendor/urlsafe-base64.bundle.js and 1 other location - About 30 mins to fix
                                                                                      assets/vendor/urlsafe-base64.bundle.js on lines 1931..1931

                                                                                      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