preston/bittorious

View on GitHub
lib/assets/bower_components/lodash/lodash.js

Summary

Maintainability
F
1 mo
Test Coverage

Function runInContext has 3983 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 https://es5.github.io/#x11.1.5 for more details.
Severity: Major
Found in lib/assets/bower_components/lodash/lodash.js - About 2 wks to fix

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

    /**
     * @license
     * lodash 3.10.0 (Custom Build) <https://lodash.com/>
     * Build: `lodash modern -o ./lodash.js`
     * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
    Severity: Major
    Found in lib/assets/bower_components/lodash/lodash.js - About 1 wk to fix

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

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

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

            function template(string, options, otherOptions) {
              // 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).
              var settings = lodash.templateSettings;
        
        
        Severity: Major
        Found in lib/assets/bower_components/lodash/lodash.js - About 3 hrs to fix

          Function createHybridWrapper has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
                var isAry = bitmask & ARY_FLAG,
                    isBind = bitmask & BIND_FLAG,
                    isBindKey = bitmask & BIND_KEY_FLAG,
                    isCurry = bitmask & CURRY_FLAG,
          Severity: Major
          Found in lib/assets/bower_components/lodash/lodash.js - About 2 hrs to fix

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

                function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
                  var objIsArr = isArray(object),
                      othIsArr = isArray(other),
                      objTag = arrayTag,
                      othTag = arrayTag;
            Severity: Minor
            Found in lib/assets/bower_components/lodash/lodash.js - About 2 hrs to fix

              Function wrapper has 49 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function wrapper() {
                      // Avoid `arguments` object use disqualifying optimizations by
                      // converting it to an array before providing it to other functions.
                      var length = arguments.length,
                          index = length,
              Severity: Minor
              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                    function trunc(string, options, guard) {
                      if (guard && isIterateeCall(string, options, guard)) {
                        options = undefined;
                      }
                      var length = DEFAULT_TRUNC_LENGTH,
                Severity: Minor
                Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                      function mixin(object, source, options) {
                        if (options == null) {
                          var isObj = isObject(source),
                              props = isObj ? keys(source) : undefined,
                              methodNames = (props && props.length) ? baseFunctions(source, props) : undefined;
                  Severity: Minor
                  Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                        function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
                          var result;
                          if (customizer) {
                            result = object ? customizer(value, key, object) : customizer(value);
                          }
                    Severity: Minor
                    Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                      Function lazyValue has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function lazyValue() {
                            var array = this.__wrapped__.value(),
                                dir = this.__dir__,
                                isArr = isArray(array),
                                isRight = dir < 0,
                      Severity: Minor
                      Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                            function mergeData(data, source) {
                              var bitmask = data[1],
                                  srcBitmask = source[1],
                                  newBitmask = bitmask | srcBitmask,
                                  isCommon = newBitmask < ARY_FLAG;
                        Severity: Minor
                        Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                              function createFlow(fromRight) {
                                return function() {
                                  var wrapper,
                                      length = arguments.length,
                                      index = fromRight ? length : -1,
                          Severity: Minor
                          Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                function baseUniq(array, iteratee) {
                                  var index = -1,
                                      indexOf = getIndexOf(),
                                      length = array.length,
                                      isCommon = indexOf == baseIndexOf,
                            Severity: Minor
                            Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                    function debounced() {
                                      args = arguments;
                                      stamp = now();
                                      thisArg = this;
                                      trailingCall = trailing && (timeoutId || !leading);
                              Severity: Minor
                              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                Function equalObjects has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
                                      var objProps = keys(object),
                                          objLength = objProps.length,
                                          othProps = keys(other),
                                          othLength = othProps.length;
                                Severity: Minor
                                Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                      function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
                                        var length = stackA.length,
                                            srcValue = source[key];
                                  
                                        while (length--) {
                                  Severity: Minor
                                  Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                        function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
                                          var isBindKey = bitmask & BIND_KEY_FLAG;
                                          if (!isBindKey && typeof func != 'function') {
                                            throw new TypeError(FUNC_ERROR_TEXT);
                                          }
                                    Severity: Minor
                                    Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                            if ((value < other && !valIsNull) || !othIsReflexive ||
                                                (othIsNull && !valIsUndef && valIsReflexive) ||
                                                (othIsUndef && valIsReflexive)) {
                                              return -1;
                                            }
                                      Severity: Critical
                                      Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                              if ((value > other && !othIsNull) || !valIsReflexive ||
                                                  (valIsNull && !othIsUndef && othIsReflexive) ||
                                                  (valIsUndef && othIsReflexive)) {
                                                return 1;
                                              }
                                        Severity: Critical
                                        Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                              function baseIsMatch(object, matchData, customizer) {
                                                var index = matchData.length,
                                                    length = index,
                                                    noCustomizer = !customizer;
                                          
                                          
                                          Severity: Minor
                                          Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                  lodash.prototype[methodName] = function() {
                                                    var args = retUnwrapped ? [1] : arguments,
                                                        chainAll = this.__chain__,
                                                        value = this.__wrapped__,
                                                        isHybrid = !!this.__actions__.length,
                                            Severity: Minor
                                            Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                  var intersection = restParam(function(arrays) {
                                                    var othLength = arrays.length,
                                                        othIndex = othLength,
                                                        caches = Array(length),
                                                        indexOf = getIndexOf(),
                                              Severity: Minor
                                              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                    function baseDifference(array, values) {
                                                      var length = array ? array.length : 0,
                                                          result = [];
                                                
                                                      if (!length) {
                                                Severity: Minor
                                                Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                                  Function createHybridWrapper has 10 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                      function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
                                                  Severity: Major
                                                  Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                        function random(min, max, floating) {
                                                          if (floating && isIterateeCall(min, max, floating)) {
                                                            max = floating = undefined;
                                                          }
                                                          var noMin = min == null,
                                                    Severity: Minor
                                                    Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                          function binaryIndexBy(array, value, iteratee, retHighest) {
                                                            value = iteratee(value);
                                                      
                                                            var low = 0,
                                                                high = array ? array.length : 0,
                                                      Severity: Minor
                                                      Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                            function baseMerge(object, source, customizer, stackA, stackB) {
                                                              if (!isObject(object)) {
                                                                return object;
                                                              }
                                                              var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)),
                                                        Severity: Minor
                                                        Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                              function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
                                                                var index = -1,
                                                                    arrLength = array.length,
                                                                    othLength = other.length;
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                                function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
                                                            Severity: Major
                                                            Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

                                                              Consider simplifying this complex logical expression.
                                                              Open

                                                                      if (objCtor != othCtor &&
                                                                          ('constructor' in object && 'constructor' in other) &&
                                                                          !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
                                                                            typeof othCtor == 'function' && othCtor instanceof othCtor)) {
                                                                        return false;
                                                              Severity: Major
                                                              Found in lib/assets/bower_components/lodash/lodash.js - About 1 hr to fix

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

                                                                    function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
                                                                Severity: Major
                                                                Found in lib/assets/bower_components/lodash/lodash.js - About 50 mins to fix

                                                                  Function equalArrays has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                      function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
                                                                  Severity: Major
                                                                  Found in lib/assets/bower_components/lodash/lodash.js - About 50 mins to fix

                                                                    Function baseIsEqualDeep has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                        function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
                                                                    Severity: Major
                                                                    Found in lib/assets/bower_components/lodash/lodash.js - About 50 mins to fix

                                                                      Function equalObjects has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                          function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
                                                                      Severity: Major
                                                                      Found in lib/assets/bower_components/lodash/lodash.js - About 50 mins to fix

                                                                        Function baseMergeDeep has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                            function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
                                                                        Severity: Major
                                                                        Found in lib/assets/bower_components/lodash/lodash.js - About 50 mins to fix

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

                                                                              function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {
                                                                          Severity: Minor
                                                                          Found in lib/assets/bower_components/lodash/lodash.js - About 45 mins to fix

                                                                            Consider simplifying this complex logical expression.
                                                                            Open

                                                                                  if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) ||
                                                                                      (isObjectLike(value) && isFunction(value.splice)))) {
                                                                                    return !value.length;
                                                                                  }
                                                                            Severity: Major
                                                                            Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

                                                                              Consider simplifying this complex logical expression.
                                                                              Open

                                                                                    if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isArguments(value)) ||
                                                                                        (!hasOwnProperty.call(value, 'constructor') && (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor)))) {
                                                                                      return false;
                                                                                    }
                                                                              Severity: Major
                                                                              Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                          if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
                                                                                            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
                                                                                          } else {
                                                                                            wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func);
                                                                                          }
                                                                                Severity: Major
                                                                                Found in lib/assets/bower_components/lodash/lodash.js - About 40 mins to fix

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

                                                                                      function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
                                                                                  Severity: Minor
                                                                                  Found in lib/assets/bower_components/lodash/lodash.js - About 35 mins to fix

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

                                                                                        function baseMerge(object, source, customizer, stackA, stackB) {
                                                                                    Severity: Minor
                                                                                    Found in lib/assets/bower_components/lodash/lodash.js - About 35 mins to fix

                                                                                      Avoid too many return statements within this function.
                                                                                      Open

                                                                                            return true;
                                                                                      Severity: Major
                                                                                      Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                        Avoid too many return statements within this function.
                                                                                        Open

                                                                                                  return stackB[length];
                                                                                        Severity: Major
                                                                                        Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                          Avoid too many return statements within this function.
                                                                                          Open

                                                                                                return true;
                                                                                          Severity: Major
                                                                                          Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                            Avoid too many return statements within this function.
                                                                                            Open

                                                                                                      return index;
                                                                                            Severity: Major
                                                                                            Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                              Avoid too many return statements within this function.
                                                                                              Open

                                                                                                        return cloneableTags[tag]
                                                                                                          ? initCloneByTag(value, tag, isDeep)
                                                                                                          : (object ? value : {});
                                                                                              Severity: Major
                                                                                              Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                                Avoid too many return statements within this function.
                                                                                                Open

                                                                                                      return true;
                                                                                                Severity: Major
                                                                                                Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                                  Avoid too many return statements within this function.
                                                                                                  Open

                                                                                                        return result;
                                                                                                  Severity: Major
                                                                                                  Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                                    Avoid too many return statements within this function.
                                                                                                    Open

                                                                                                          return -1;
                                                                                                    Severity: Major
                                                                                                    Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

                                                                                                      Avoid too many return statements within this function.
                                                                                                      Open

                                                                                                            return result;
                                                                                                      Severity: Major
                                                                                                      Found in lib/assets/bower_components/lodash/lodash.js - About 30 mins to fix

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

                                                                                                          cloneableTags[dateTag] = cloneableTags[float32Tag] =
                                                                                                          cloneableTags[float64Tag] = cloneableTags[int8Tag] =
                                                                                                          cloneableTags[int16Tag] = cloneableTags[int32Tag] =
                                                                                                          cloneableTags[numberTag] = cloneableTags[objectTag] =
                                                                                                          cloneableTags[regexpTag] = cloneableTags[stringTag] =
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 3 hrs to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 161..167

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

                                                                                                        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

                                                                                                          typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
                                                                                                          typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
                                                                                                          typedArrayTags[dateTag] = typedArrayTags[errorTag] =
                                                                                                          typedArrayTags[funcTag] = typedArrayTags[mapTag] =
                                                                                                          typedArrayTags[numberTag] = typedArrayTags[objectTag] =
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 3 hrs to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 173..179

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

                                                                                                        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 every(collection, predicate, thisArg) {
                                                                                                              var func = isArray(collection) ? arrayEvery : baseEvery;
                                                                                                              if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
                                                                                                                predicate = undefined;
                                                                                                              }
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 3 hrs to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 7043..7052

                                                                                                        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

                                                                                                            function some(collection, predicate, thisArg) {
                                                                                                              var func = isArray(collection) ? arraySome : baseSome;
                                                                                                              if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
                                                                                                                predicate = undefined;
                                                                                                              }
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 3 hrs to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 6246..6255

                                                                                                        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

                                                                                                              if (!objIsArr) {
                                                                                                                objTag = objToString.call(object);
                                                                                                                if (objTag == argsTag) {
                                                                                                                  objTag = objectTag;
                                                                                                                } else if (objTag != objectTag) {
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 2164..2171

                                                                                                        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

                                                                                                              if (!othIsArr) {
                                                                                                                othTag = objToString.call(other);
                                                                                                                if (othTag == argsTag) {
                                                                                                                  othTag = objectTag;
                                                                                                                } else if (othTag != objectTag) {
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 2156..2163

                                                                                                        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 getCallback(func, thisArg, argCount) {
                                                                                                              var result = lodash.callback || callback;
                                                                                                              result = result === callback ? baseCallback : result;
                                                                                                              return argCount ? result(func, thisArg, argCount) : result;
                                                                                                            }
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 3899..3903

                                                                                                        Duplicated Code

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

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

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

                                                                                                        Tuning

                                                                                                        This issue has a mass of 62.

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

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

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

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

                                                                                                        Refactorings

                                                                                                        Further Reading

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

                                                                                                            function getIndexOf(collection, target, fromIndex) {
                                                                                                              var result = lodash.indexOf || indexOf;
                                                                                                              result = result === indexOf ? baseIndexOf : result;
                                                                                                              return collection ? result(collection, target, fromIndex) : result;
                                                                                                            }
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 3851..3855

                                                                                                        Duplicated Code

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

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

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

                                                                                                        Tuning

                                                                                                        This issue has a mass of 62.

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

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

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

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

                                                                                                        Refactorings

                                                                                                        Further Reading

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

                                                                                                              if (typeof func != 'function') {
                                                                                                                if (typeof n == 'function') {
                                                                                                                  var temp = n;
                                                                                                                  n = func;
                                                                                                                  func = temp;
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 7352..7360

                                                                                                        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

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

                                                                                                              if (typeof func != 'function') {
                                                                                                                if (typeof n == 'function') {
                                                                                                                  var temp = n;
                                                                                                                  n = func;
                                                                                                                  func = temp;
                                                                                                        Severity: Major
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 1 hr to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 7293..7301

                                                                                                        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

                                                                                                            function filter(collection, predicate, thisArg) {
                                                                                                              var func = isArray(collection) ? arrayFilter : baseFilter;
                                                                                                              predicate = getCallback(predicate, thisArg, 3);
                                                                                                              return func(collection, predicate);
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 55 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 6707..6711

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

                                                                                                        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 map(collection, iteratee, thisArg) {
                                                                                                              var func = isArray(collection) ? arrayMap : baseMap;
                                                                                                              iteratee = getCallback(iteratee, thisArg, 3);
                                                                                                              return func(collection, iteratee);
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 55 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 6306..6310

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

                                                                                                        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 groupBy = createAggregator(function(result, value, key) {
                                                                                                              if (hasOwnProperty.call(result, key)) {
                                                                                                                result[key].push(value);
                                                                                                              } else {
                                                                                                                result[key] = [value];
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 50 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 9630..9636

                                                                                                        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

                                                                                                                if (multiValue) {
                                                                                                                  if (hasOwnProperty.call(result, value)) {
                                                                                                                    result[value].push(key);
                                                                                                                  } else {
                                                                                                                    result[value] = [key];
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 50 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 6513..6519

                                                                                                        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 arrValue = array[index],
                                                                                                                    othValue = other[index],
                                                                                                                    result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 40 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 3817..3819

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

                                                                                                        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 objValue = object[key],
                                                                                                                    othValue = other[key],
                                                                                                                    result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined;
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 40 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 3721..3723

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

                                                                                                        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 snakeCase = createCompounder(function(result, word, index) {
                                                                                                              return result + (index ? '_' : '') + word.toLowerCase();
                                                                                                            });
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 10377..10379

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

                                                                                                        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 kebabCase = createCompounder(function(result, word, index) {
                                                                                                              return result + (index ? '-' : '') + word.toLowerCase();
                                                                                                            });
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 10562..10564

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

                                                                                                        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' || (isObjectLike(value) && objToString.call(value) == stringTag);
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 8886..8888

                                                                                                        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

                                                                                                                var argsIndex = -1,
                                                                                                                    argsLength = arguments.length,
                                                                                                                    leftIndex = -1,
                                                                                                                    leftLength = partials.length,
                                                                                                                    args = Array(leftLength + argsLength);
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 1241..1245

                                                                                                        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

                                                                                                            function dropRightWhile(array, predicate, thisArg) {
                                                                                                              return (array && array.length)
                                                                                                                ? baseWhile(array, getCallback(predicate, thisArg, 3), true, true)
                                                                                                                : [];
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 5482..5486

                                                                                                        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

                                                                                                            function isNumber(value) {
                                                                                                              return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag);
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 8977..8979

                                                                                                        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

                                                                                                            function takeRightWhile(array, predicate, thisArg) {
                                                                                                              return (array && array.length)
                                                                                                                ? baseWhile(array, getCallback(predicate, thisArg, 3), false, true)
                                                                                                                : [];
                                                                                                            }
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 4658..4662

                                                                                                        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

                                                                                                              var index = -1,
                                                                                                                  length = array.length,
                                                                                                                  othIndex = -1,
                                                                                                                  othLength = other.length,
                                                                                                                  result = Array(length + othLength);
                                                                                                        Severity: Minor
                                                                                                        Found in lib/assets/bower_components/lodash/lodash.js and 1 other location - About 35 mins to fix
                                                                                                        lib/assets/bower_components/lodash/lodash.js on lines 3579..3583

                                                                                                        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

                                                                                                        There are no issues that match your filters.

                                                                                                        Category
                                                                                                        Status