preston/bittorious

View on GitHub

Showing 181 of 235 total issues

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

      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 $$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 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 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 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

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

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

                                  Path.prototype.base = function(current) {
                                    var __this = this;
                                    return  _.reduce(this.parentsArray(current), function(acum, elem) {
                                      var elemUrl;
                                      var elemSelfLink = __this.config.getUrlFromElem(elem);
                              Severity: Minor
                              Found in lib/assets/bower_components/restangular/src/restangular.js - About 1 hr to fix

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

                                    Path.prototype.base = function(current) {
                                      var __this = this;
                                      return  _.reduce(this.parentsArray(current), function(acum, elem) {
                                        var elemUrl;
                                        var elemSelfLink = __this.config.getUrlFromElem(elem);
                                Severity: Minor
                                Found in lib/assets/bower_components/restangular/dist/restangular.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 packageAnimations has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              function packageAnimations(element, event, options, animations, fnName) {
                                                var operations = groupEventedAnimations(element, event, options, animations, fnName);
                                                if (operations.length === 0) {
                                                  var a,b;
                                                  if (fnName === 'beforeSetClass') {
                                        Severity: Minor
                                        Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language