CaffGeek/MBACNationals

View on GitHub
Web.Admin/AdminApp/Controllers/controller.reservation.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function reservationController has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var reservationController = function ($scope, $http, $q, $location, modalFactory, dataService, moment) {
        var url = $location.absUrl();
        var lastSlash = url.lastIndexOf('/');
        var province = url.slice(lastSlash + 1);
        var year = url.slice(lastSlash - 4, lastSlash);
Severity: Major
Found in Web.Admin/AdminApp/Controllers/controller.reservation.js - About 3 hrs to fix

    Function reservationController has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        var reservationController = function ($scope, $http, $q, $location, modalFactory, dataService, moment) {
    Severity: Major
    Found in Web.Admin/AdminApp/Controllers/controller.reservation.js - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status