gadael/gadael

View on GitHub
public/js/services/request-edit.js

Summary

Maintainability
D
1 day
Test Coverage

Function requestEdit has 181 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    return function requestEdit(gettextCatalog) {
        /**
         * Duration in milliseconds updated on every period changes
         * @var {int}
         */
Severity: Major
Found in public/js/services/request-edit.js - About 7 hrs to fix

    Function onceUserLoaded has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                onceUserLoaded: function onceUserLoaded($scope, user, calendarEvents)
                {
                    /**
                     * get the onUpdateInterval function
                     * @param   {Object}   $scope
    Severity: Major
    Found in public/js/services/request-edit.js - About 2 hrs to fix

      Function getOnUpdateInterval has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      function getOnUpdateInterval($scope, account, calendarEvents) {
      
                          /**
                           * Get notified if interval is modified
                           * @param {Date} begin
      Severity: Minor
      Found in public/js/services/request-edit.js - About 1 hr to fix

        Function onUpdateInterval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                            return function onUpdateInterval(begin, end)
                            {
                                duration = 0;
                                $scope.selection.businessDays = 0;
        
        
        Severity: Minor
        Found in public/js/services/request-edit.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status