linagora/openpaas-esn

View on GitHub
modules/linagora.esn.contact/frontend/app/sidebar/sidebar.controller.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function ContactSidebarController has 111 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function ContactSidebarController(
    $scope,
    $q,
    _,
    userAPI,

    Function _injectOwnerToSubscription has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function _injectOwnerToSubscription(addressbooks) {
          var userIds = [];
    
          addressbooks.forEach(function(addressbook) {
            if (addressbook.isSubscription && !addressbook.group) {

      Function ContactSidebarController has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          $scope,
          $q,
          _,
          userAPI,
          userUtils,

        There are no issues that match your filters.

        Category
        Status