yadaguru/yadaguru-app

View on GitHub
src/services/routeResolverProvider.js

Summary

Maintainability
C
7 hrs
Test Coverage

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

  var routeResolver = function() {

    this.$get = function() {
      return this;
    };
Severity: Major
Found in src/services/routeResolverProvider.js - About 2 hrs to fix

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

        this.route = (function(routeConfig) {
    
          var resolve = function(url, baseName, path, controllerAs, secure) {
              if (!path) {
                path = '';
    Severity: Minor
    Found in src/services/routeResolverProvider.js - About 2 hrs to fix

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

            var resolve = function(url, baseName, path, controllerAs, secure) {
                if (!path) {
                  path = '';
                }
      
      
      Severity: Minor
      Found in src/services/routeResolverProvider.js - About 1 hr to fix

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

              var resolve = function(url, baseName, path, controllerAs, secure) {
        Severity: Minor
        Found in src/services/routeResolverProvider.js - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status