preston/bittorious

View on GitHub
lib/assets/bower_components/angular-route/angular-route.js

Summary

Maintainability
F
3 days
Test Coverage

Function $RouteProvider has 216 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function $RouteProvider() {
  function inherit(parent, extra) {
    return angular.extend(Object.create(parent), extra);
  }

Severity: Major
Found in lib/assets/bower_components/angular-route/angular-route.js - About 1 day to fix

    Function $get has 145 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
    
        /**
         * @ngdoc service
         * @name $route
    Severity: Major
    Found in lib/assets/bower_components/angular-route/angular-route.js - About 5 hrs to fix

      File angular-route.js has 310 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * @license AngularJS v1.4.3
       * (c) 2010-2015 Google, Inc. http://angularjs.org
       * License: MIT
       */
      Severity: Minor
      Found in lib/assets/bower_components/angular-route/angular-route.js - About 3 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 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 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 $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                    function($rootScope, $location, $routeParams, $q, $injector, $templateRequest, $sce) {
              Severity: Major
              Found in lib/assets/bower_components/angular-route/angular-route.js - About 50 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if (angular.isFunction(templateUrl)) {
                                  templateUrl = templateUrl(nextRoute.params);
                                }
                Severity: Major
                Found in lib/assets/bower_components/angular-route/angular-route.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                  if (angular.isDefined(templateUrl)) {
                                    nextRoute.loadedTemplateUrl = $sce.valueOf(templateUrl);
                                    template = $templateRequest(templateUrl);
                                  }
                  Severity: Major
                  Found in lib/assets/bower_components/angular-route/angular-route.js - About 45 mins to fix

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

                        link: function(scope, $element, attr, ctrl, $transclude) {
                    Severity: Minor
                    Found in lib/assets/bower_components/angular-route/angular-route.js - About 35 mins to fix

                      There are no issues that match your filters.

                      Category
                      Status