preston/bittorious

View on GitHub

Showing 235 of 235 total issues

Function fetchRequestedUrl has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Path.prototype.fetchRequestedUrl = function(current, what) {
      var url = this.fetchUrl(current, what);
      var params = current[config.restangularFields.reqParams];

      // From here on and until the end of fetchRequestedUrl,
Severity: Minor
Found in lib/assets/bower_components/restangular/dist/restangular.js - About 1 hr to fix

    Function fetchRequestedUrl has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Path.prototype.fetchRequestedUrl = function(current, what) {
          var url = this.fetchUrl(current, what);
          var params = current[config.restangularFields.reqParams];
    
          // From here on and until the end of fetchRequestedUrl,
    Severity: Minor
    Found in lib/assets/bower_components/restangular/src/restangular.js - About 1 hr to fix

      Function prepareFromToAnchorAnimation has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function prepareFromToAnchorAnimation(from, to, classes, anchors) {
            var fromAnimation = prepareRegularAnimation(from);
            var toAnimation = prepareRegularAnimation(to);
      
            var anchorAnimations = [];
      Severity: Minor
      Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

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

              $translate.use = function (key) {
                if (!key) {
                  return $uses;
                }
        
        
        Severity: Minor
        Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 1 hr to fix

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

                var determineTranslation = function (translationId, interpolateParams, interpolationId, defaultTranslationText) {
          
                  var deferred = $q.defer();
          
                  var table = $uses ? $translationTable[$uses] : $translationTable,
          Severity: Minor
          Found in lib/assets/bower_components/angular-translate/angular-translate.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

              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

                    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

              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 $$rAFSchedulerFactory has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var $$rAFSchedulerFactory = ['$$rAF', function($$rAF) {
                    var tickQueue = [];
                    var cancelFn;
                  
                    function scheduler(tasks) {
                  Severity: Minor
                  Found in lib/assets/bower_components/angular-animate/angular-animate.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 restangularizeBase has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            function restangularizeBase(parent, elem, route, reqParams, fromServer) {
                              elem[config.restangularFields.route] = route;
                              elem[config.restangularFields.getRestangularUrl] = _.bind(urlHandler.fetchUrl, urlHandler, elem);
                              elem[config.restangularFields.getRequestedUrl] = _.bind(urlHandler.fetchRequestedUrl, urlHandler, elem);
                              elem[config.restangularFields.addRestangularMethod] = _.bind(addRestangularMethodFunction, elem);
                      Severity: Minor
                      Found in lib/assets/bower_components/restangular/src/restangular.js - About 1 hr to fix

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

                          var negotiateLocale = function (preferred) {
                        
                            var avail = [],
                                locale = angular.lowercase(preferred),
                                i = 0,
                        Severity: Minor
                        Found in lib/assets/bower_components/angular-translate/angular-translate.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

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

                                  function restangularizeBase(parent, elem, route, reqParams, fromServer) {
                                    elem[config.restangularFields.route] = route;
                                    elem[config.restangularFields.getRestangularUrl] = _.bind(urlHandler.fetchUrl, urlHandler, elem);
                                    elem[config.restangularFields.getRequestedUrl] = _.bind(urlHandler.fetchRequestedUrl, urlHandler, elem);
                                    elem[config.restangularFields.addRestangularMethod] = _.bind(addRestangularMethodFunction, elem);
                            Severity: Minor
                            Found in lib/assets/bower_components/restangular/dist/restangular.js - About 1 hr to fix

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

                                  return function initDriverFn(animationDetails) {
                                    if (animationDetails.from && animationDetails.to) {
                                      var fromAnimation = prepareAnimation(animationDetails.from);
                                      var toAnimation = prepareAnimation(animationDetails.to);
                                      if (!fromAnimation && !toAnimation) return;
                              Severity: Minor
                              Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix

                                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

                                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
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language