myems-admin/app/controllers/settings/space/spacecombinedequipment.controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getAllSpaces has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $scope.getAllSpaces = function() {
    let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
    SpaceService.getAllSpaces(headers, function (response) {
      if (angular.isDefined(response.status) && response.status === 200) {
          $scope.spaces = response.data;

    Function refreshSpaceTree has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      $scope.refreshSpaceTree = function() {
        let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
        SpaceService.getAllSpaces(headers, function (response) {
          if (angular.isDefined(response.status) && response.status === 200) {
            $scope.spaces = response.data;

      There are no issues that match your filters.

      Category
      Status