pinclub/pinclub

View on GitHub
public/libs/lodash.compat.js

Summary

Maintainability
F
1 mo
Test Coverage

Function runInContext has 2465 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function runInContext(context) {
    // Avoid issues with some ES3 environments that attempt to use values, named
    // after built-in constructors like `Object`, for the creation of literals.
    // ES5 clears this up by stating that literals must use built-in constructors.
    // See http://es5.github.io/#x11.1.5.
Severity: Major
Found in public/libs/lodash.compat.js - About 1 wk to fix

    File lodash.compat.js has 2728 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @license
     * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
     * Build: `lodash -o ./dist/lodash.compat.js`
     * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
    Severity: Major
    Found in public/libs/lodash.compat.js - About 1 wk to fix

      Function baseIsEqual has 113 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function baseIsEqual(a, b, callback, isWhere, stackA, stackB) {
            // used to indicate that when comparing objects, `a` has at least the properties of `b`
            if (callback) {
              var result = callback(a, b);
              if (typeof result != 'undefined') {
      Severity: Major
      Found in public/libs/lodash.compat.js - About 4 hrs to fix

        Function debounce has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function debounce(func, wait, options) {
              var args,
                maxTimeoutId,
                result,
                stamp,
        Severity: Major
        Found in public/libs/lodash.compat.js - About 3 hrs to fix

          Function iteratorTemplate has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var iteratorTemplate = function (obj) {
          
                var __p = 'var index, iterable = ' +
                  (obj.firstArg) +
                  ', result = ' +
          Severity: Major
          Found in public/libs/lodash.compat.js - About 3 hrs to fix

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

                function baseClone(value, isDeep, callback, stackA, stackB) {
                  if (callback) {
                    var result = callback(value);
                    if (typeof result != 'undefined') {
                      return result;
            Severity: Major
            Found in public/libs/lodash.compat.js - About 2 hrs to fix

              Function template has 63 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function template(text, data, options) {
                    // based on John Resig's `tmpl` implementation
                    // http://ejohn.org/blog/javascript-micro-templating/
                    // and Laura Doktorova's doT.js
                    // https://github.com/olado/doT
              Severity: Major
              Found in public/libs/lodash.compat.js - About 2 hrs to fix

                Function createWrapper has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
                      var isBind = bitmask & 1,
                        isBindKey = bitmask & 2,
                        isCurry = bitmask & 4,
                        isCurryBound = bitmask & 8,
                Severity: Minor
                Found in public/libs/lodash.compat.js - About 1 hr to fix

                  Function baseMerge has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function baseMerge(object, source, callback, stackA, stackB) {
                        (isArray(source) ? forEach : forOwn)(source, function (source, key) {
                          var found,
                            isArr,
                            result = source,
                  Severity: Minor
                  Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                        function baseCreateCallback(func, thisArg, argCount) {
                          if (typeof func != 'function') {
                            return identity;
                          }
                          // exit early for no `thisArg` or already bound by `Function#bind`
                    Severity: Minor
                    Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                          function intersection() {
                            var args = [],
                              argsIndex = -1,
                              argsLength = arguments.length,
                              caches = getArray(),
                      Severity: Minor
                      Found in public/libs/lodash.compat.js - About 1 hr to fix

                        Function baseCreateWrapper has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function baseCreateWrapper(bindData) {
                              var func = bindData[0],
                                bitmask = bindData[1],
                                partialArgs = bindData[2],
                                partialRightArgs = bindData[3],
                        Severity: Minor
                        Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                              function mixin(object, source, options) {
                                var chain = true,
                                  methodNames = source && functions(source);
                          
                                if (!source || (!options && !methodNames.length)) {
                          Severity: Minor
                          Found in public/libs/lodash.compat.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                  if (!(value && toString.call(value) == objectClass) ||
                                    (ctor = value.constructor, isFunction(ctor) && !(ctor instanceof ctor)) ||
                                    (!support.argsClass && isArguments(value)) ||
                                    (!support.nodeClass && isNode(value))) {
                                    return false;
                            Severity: Critical
                            Found in public/libs/lodash.compat.js - About 1 hr to fix

                              Function baseUniq has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function baseUniq(array, isSorted, callback) {
                                    var index = -1,
                                      indexOf = getIndexOf(),
                                      length = array ? array.length : 0,
                                      result = [];
                              Severity: Minor
                              Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                                    function sortBy(collection, callback, thisArg) {
                                      var index = -1,
                                        isArr = isArray(callback),
                                        length = collection ? collection.length : 0,
                                        result = Array(typeof length == 'number' ? length : 0);
                                Severity: Minor
                                Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                                      function random(min, max, floating) {
                                        var noMin = min == null,
                                          noMax = max == null;
                                  
                                        if (floating == null) {
                                  Severity: Minor
                                  Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                                        function max(collection, callback, thisArg) {
                                          var computed = -Infinity,
                                            result = computed;
                                    
                                          // allows working with functions like `_.map` without using
                                    Severity: Minor
                                    Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                                          function min(collection, callback, thisArg) {
                                            var computed = Infinity,
                                              result = computed;
                                      
                                            // allows working with functions like `_.map` without using
                                      Severity: Minor
                                      Found in public/libs/lodash.compat.js - About 1 hr to fix

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

                                            function createCallback(func, thisArg, argCount) {
                                              var type = typeof func;
                                              if (func == null || type == 'function') {
                                                return baseCreateCallback(func, thisArg, argCount);
                                              }
                                        Severity: Minor
                                        Found in public/libs/lodash.compat.js - About 1 hr to fix

                                          Consider simplifying this complex logical expression.
                                          Open

                                                  if (ctorA != ctorB && !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) &&
                                                    ('constructor' in a && 'constructor' in b)
                                                    ) {
                                                    return false;
                                                  }
                                          Severity: Major
                                          Found in public/libs/lodash.compat.js - About 1 hr to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                          while (index--) {
                                                            if ((result = baseIsEqual(a[index], value, callback, isWhere, stackA, stackB))) {
                                                              break;
                                                            }
                                                          }
                                            Severity: Major
                                            Found in public/libs/lodash.compat.js - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                          } else if (!(result = baseIsEqual(a[size], value, callback, isWhere, stackA, stackB))) {
                                                            break;
                                                          }
                                              Severity: Major
                                              Found in public/libs/lodash.compat.js - About 45 mins to fix

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

                                                    function baseIsEqual(a, b, callback, isWhere, stackA, stackB) {
                                                Severity: Minor
                                                Found in public/libs/lodash.compat.js - About 45 mins to fix

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

                                                      function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
                                                  Severity: Minor
                                                  Found in public/libs/lodash.compat.js - About 45 mins to fix

                                                    Consider simplifying this complex logical expression.
                                                    Open

                                                        if (!support.argsClass) {
                                                          isArguments = function (value) {
                                                            return value && typeof value == 'object' && typeof value.length == 'number' &&
                                                              hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee') || false;
                                                          };
                                                    Severity: Major
                                                    Found in public/libs/lodash.compat.js - About 40 mins to fix

                                                      Consider simplifying this complex logical expression.
                                                      Open

                                                          if (first && typeof first == 'object' &&
                                                            mid && typeof mid == 'object' && last && typeof last == 'object') {
                                                            return false;
                                                          }
                                                      Severity: Major
                                                      Found in public/libs/lodash.compat.js - About 40 mins to fix

                                                        Consider simplifying this complex logical expression.
                                                        Open

                                                              if ((className == arrayClass || className == stringClass ||
                                                                (support.argsClass ? className == argsClass : isArguments(value))) ||
                                                                (className == objectClass && typeof length == 'number' && isFunction(value.splice))) {
                                                                return !length;
                                                              }
                                                        Severity: Major
                                                        Found in public/libs/lodash.compat.js - About 40 mins to fix

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

                                                              function baseClone(value, isDeep, callback, stackA, stackB) {
                                                          Severity: Minor
                                                          Found in public/libs/lodash.compat.js - About 35 mins to fix

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

                                                                function baseMerge(object, source, callback, stackA, stackB) {
                                                            Severity: Minor
                                                            Found in public/libs/lodash.compat.js - About 35 mins to fix

                                                              Avoid too many return statements within this function.
                                                              Open

                                                                        return false;
                                                              Severity: Major
                                                              Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                Avoid too many return statements within this function.
                                                                Open

                                                                      return result;
                                                                Severity: Major
                                                                Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                  Avoid too many return statements within this function.
                                                                  Open

                                                                            return false;
                                                                  Severity: Major
                                                                  Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                    Avoid too many return statements within this function.
                                                                    Open

                                                                                return stackB[length];
                                                                    Severity: Major
                                                                    Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                      Avoid too many return statements within this function.
                                                                      Open

                                                                              return false;
                                                                      Severity: Major
                                                                      Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                        Avoid too many return statements within this function.
                                                                        Open

                                                                              return result;
                                                                        Severity: Major
                                                                        Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                          Avoid too many return statements within this function.
                                                                          Open

                                                                                  return result;
                                                                          Severity: Major
                                                                          Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                            Avoid too many return statements within this function.
                                                                            Open

                                                                                      return baseIsEqual(aWrapped ? a.__wrapped__ : a, bWrapped ? b.__wrapped__ : b, callback, isWhere, stackA, stackB);
                                                                            Severity: Major
                                                                            Found in public/libs/lodash.compat.js - About 30 mins to fix

                                                                              Avoid too many return statements within this function.
                                                                              Open

                                                                                        return stackB[length] == b;
                                                                              Severity: Major
                                                                              Found in public/libs/lodash.compat.js - About 30 mins to fix

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

                                                                                      if (callback == null && isArray(collection)) {
                                                                                        var index = -1,
                                                                                          length = collection.length;
                                                                                
                                                                                        while (++index < length) {
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 6 hrs to fix
                                                                                public/libs/lodash.compat.js on lines 4013..4035

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

                                                                                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 (callback == null && isArray(collection)) {
                                                                                        var index = -1,
                                                                                          length = collection.length;
                                                                                
                                                                                        while (++index < length) {
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 6 hrs to fix
                                                                                public/libs/lodash.compat.js on lines 3938..3960

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

                                                                                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

                                                                                    function findKey(object, callback, thisArg) {
                                                                                      var result;
                                                                                      callback = lodash.createCallback(callback, thisArg, 3);
                                                                                      forOwn(object, function (value, key, object) {
                                                                                        if (callback(value, key, object)) {
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 2 other locations - About 2 hrs to fix
                                                                                public/libs/lodash.compat.js on lines 2350..2360
                                                                                public/libs/lodash.compat.js on lines 3618..3628

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

                                                                                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

                                                                                    function findLastKey(object, callback, thisArg) {
                                                                                      var result;
                                                                                      callback = lodash.createCallback(callback, thisArg, 3);
                                                                                      forOwnRight(object, function (value, key, object) {
                                                                                        if (callback(value, key, object)) {
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 2 other locations - About 2 hrs to fix
                                                                                public/libs/lodash.compat.js on lines 2297..2307
                                                                                public/libs/lodash.compat.js on lines 3618..3628

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

                                                                                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

                                                                                    function findLast(collection, callback, thisArg) {
                                                                                      var result;
                                                                                      callback = lodash.createCallback(callback, thisArg, 3);
                                                                                      forEachRight(collection, function (value, index, collection) {
                                                                                        if (callback(value, index, collection)) {
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 2 other locations - About 2 hrs to fix
                                                                                public/libs/lodash.compat.js on lines 2297..2307
                                                                                public/libs/lodash.compat.js on lines 2350..2360

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

                                                                                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 (typeof isSorted != 'boolean' && isSorted != null) {
                                                                                        thisArg = callback;
                                                                                        callback = (typeof isSorted != 'function' && thisArg && thisArg[isSorted] === array) ? null : isSorted;
                                                                                        isSorted = false;
                                                                                      }
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 4739..4743

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

                                                                                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 (typeof isShallow != 'boolean' && isShallow != null) {
                                                                                        thisArg = callback;
                                                                                        callback = (typeof isShallow != 'function' && thisArg && thisArg[isShallow] === array) ? null : isShallow;
                                                                                        isShallow = false;
                                                                                      }
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 5359..5363

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

                                                                                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 (isCalled) {
                                                                                            lastCalled = now();
                                                                                            result = func.apply(thisArg, args);
                                                                                            if (!timeoutId && !maxTimeoutId) {
                                                                                              args = thisArg = null;
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 5798..5804

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

                                                                                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 (typeof callback != 'number' && callback != null) {
                                                                                        var index = length;
                                                                                        callback = lodash.createCallback(callback, thisArg, 3);
                                                                                        while (index-- && callback(array[index], index, array)) {
                                                                                          n++;
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 4969..4980

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

                                                                                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 (typeof callback != 'number' && callback != null) {
                                                                                        var index = length;
                                                                                        callback = lodash.createCallback(callback, thisArg, 3);
                                                                                        while (index-- && callback(array[index], index, array)) {
                                                                                          n++;
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 4839..4847

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

                                                                                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 isNumber(value) {
                                                                                      return typeof value == 'number' ||
                                                                                        value && typeof value == 'object' && toString.call(value) == numberClass || false;
                                                                                    }
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 2922..2925

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

                                                                                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 isString(value) {
                                                                                      return typeof value == 'string' ||
                                                                                        value && typeof value == 'object' && toString.call(value) == stringClass || false;
                                                                                    }
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 2851..2854

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

                                                                                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 (trailing || (maxWait !== wait)) {
                                                                                          lastCalled = now();
                                                                                          result = func.apply(thisArg, args);
                                                                                          if (!timeoutId && !maxTimeoutId) {
                                                                                            args = thisArg = null;
                                                                                Severity: Major
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 1 hr to fix
                                                                                public/libs/lodash.compat.js on lines 5781..5787

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

                                                                                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 bindKey(object, key) {
                                                                                      return arguments.length > 2
                                                                                        ? createWrapper(key, 19, slice(arguments, 2), null, object)
                                                                                        : createWrapper(key, 3, null, null, object);
                                                                                    }
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 50 mins to fix
                                                                                public/libs/lodash.compat.js on lines 5545..5549

                                                                                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

                                                                                    function bind(func, thisArg) {
                                                                                      return arguments.length > 2
                                                                                        ? createWrapper(func, 17, slice(arguments, 2), null, thisArg)
                                                                                        : createWrapper(func, 1, null, null, thisArg);
                                                                                    }
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 50 mins to fix
                                                                                public/libs/lodash.compat.js on lines 5621..5625

                                                                                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

                                                                                    function isArguments(value) {
                                                                                      return value && typeof value == 'object' && typeof value.length == 'number' &&
                                                                                        toString.call(value) == argsClass || false;
                                                                                    }
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 50 mins to fix
                                                                                public/libs/lodash.compat.js on lines 1945..1948

                                                                                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

                                                                                    var isArray = nativeIsArray || function (value) {
                                                                                      return value && typeof value == 'object' && typeof value.length == 'number' &&
                                                                                        toString.call(value) == arrayClass || false;
                                                                                    };
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 50 mins to fix
                                                                                public/libs/lodash.compat.js on lines 1915..1918

                                                                                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

                                                                                      var index = -1,
                                                                                        length = collection ? collection.length : 0,
                                                                                        result = Array(typeof length == 'number' ? length : 0);
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 30 mins to fix
                                                                                public/libs/lodash.compat.js on lines 3872..3874

                                                                                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

                                                                                      var index = -1,
                                                                                        length = collection ? collection.length : 0,
                                                                                        result = Array(typeof length == 'number' ? length : 0);
                                                                                Severity: Minor
                                                                                Found in public/libs/lodash.compat.js and 1 other location - About 30 mins to fix
                                                                                public/libs/lodash.compat.js on lines 4238..4240

                                                                                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