preston/bittorious

View on GitHub

Showing 181 of 235 total issues

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

          function elemFunction(operation, what, params, obj, headers) {
            var __this = this;
            var deferred = $q.defer();
            var resParams = params || {};
            var route = what || this[config.restangularFields.route];
    Severity: Major
    Found in lib/assets/bower_components/restangular/dist/restangular.js - About 2 hrs to fix

      Function elemFunction has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function elemFunction(operation, what, params, obj, headers) {
              var __this = this;
              var deferred = $q.defer();
              var resParams = params || {};
              var route = what || this[config.restangularFields.route];
      Severity: Major
      Found in lib/assets/bower_components/restangular/src/restangular.js - About 2 hrs to fix

        Function fetchFunction has 69 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function fetchFunction(what, reqParams, headers) {
                var __this = this;
                var deferred = $q.defer();
                var operation = 'getList';
                var url = urlHandler.fetchUrl(this, what);
        Severity: Major
        Found in lib/assets/bower_components/restangular/src/restangular.js - About 2 hrs to fix

          Function fetchFunction has 69 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function fetchFunction(what, reqParams, headers) {
                  var __this = this;
                  var deferred = $q.defer();
                  var operation = 'getList';
                  var url = urlHandler.fetchUrl(this, what);
          Severity: Major
          Found in lib/assets/bower_components/restangular/dist/restangular.js - About 2 hrs to fix

            Function triggerAnimationStart has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function triggerAnimationStart() {
                      // just incase a stagger animation kicks in when the animation
                      // itself was cancelled entirely
                      if (animationClosed) return;
            
            
            Severity: Major
            Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 2 hrs to fix

              Function groupAnimations has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function groupAnimations(animations) {
                      var preparedAnimations = [];
                      var refLookup = {};
                      forEach(animations, function(animation, index) {
                        var element = animation.element;
              Severity: Major
              Found in lib/assets/bower_components/angular-animate/angular-animate.js - About 2 hrs to fix

                Function resource has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
                
                      var params = _.defaults(callParams || {}, this.config.defaultRequestParams.common);
                      var headers = _.defaults(callHeaders || {}, this.config.defaultHeaders);
                
                
                Severity: Major
                Found in lib/assets/bower_components/restangular/dist/restangular.js - About 2 hrs to fix

                  Function resource has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag,operation) {
                  
                        var params = _.defaults(callParams || {}, this.config.defaultRequestParams.common);
                        var headers = _.defaults(callHeaders || {}, this.config.defaultHeaders);
                  
                  
                  Severity: Major
                  Found in lib/assets/bower_components/restangular/src/restangular.js - About 2 hrs to fix

                    Function commitRoute has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function commitRoute() {
                          var lastRoute = $route.current;
                          var nextRoute = preparedRoute;
                    
                          if (preparedRouteIsUpdateOnly) {
                    Severity: Major
                    Found in lib/assets/bower_components/angular-route/angular-route.js - About 2 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 ngViewFactory has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function ngViewFactory($route, $anchorScroll, $animate) {
                          return {
                            restrict: 'ECA',
                            terminal: true,
                            priority: 400,
                        Severity: Major
                        Found in lib/assets/bower_components/angular-route/angular-route.js - About 2 hrs to fix

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

                                var $translate = function (translationId, interpolateParams, interpolationId, defaultTranslationText) {
                          
                                  // Duck detection: If the first argument is an array, a bunch of translations was requested.
                                  // The result is an object.
                                  if (angular.isArray(translationId)) {
                          Severity: Major
                          Found in lib/assets/bower_components/angular-translate/angular-translate.js - About 2 hrs to fix

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

                                this.addMessage = function (message) {
                                  var directive, messages, found, msgText;
                                  if (this.directives[message.referenceId]) {
                                    directive = this.directives[message.referenceId];
                                  } else {
                            Severity: Major
                            Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 2 hrs to fix

                              Function controller has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function ($scope, $timeout, growl, growlMessages) {
                                        $scope.referenceId = $scope.reference || 0;
                                        growlMessages.initDirective($scope.referenceId, $scope.limitMessages);
                                        $scope.growlMessages = growlMessages;
                                        $scope.inlineMessage = angular.isDefined($scope.inline) ? $scope.inline : growl.inlineMessages();
                              Severity: Major
                              Found in lib/assets/bower_components/angular-growl-v2/build/angular-growl.js - About 2 hrs to fix

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

                                      $translate.refresh = function (langKey) {
                                        if (!$loaderFactory) {
                                          throw new Error('Couldn\'t refresh translation table, no loader registered!');
                                        }
                                
                                
                                Severity: Minor
                                Found in lib/assets/bower_components/angular-translate/angular-translate.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 link has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          link: function(scope, $element, attr, ctrl, $transclude) {
                                              var currentScope,
                                                  currentElement,
                                                  previousLeaveAnimation,
                                                  autoScrollExp = attr.autoscroll,
                                      Severity: Minor
                                      Found in lib/assets/bower_components/angular-route/angular-route.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language