linagora/openpaas-esn

View on GitHub
frontend/js/modules/collaboration/invite/collaboration-invite-users.directive.js

Summary

Maintainability
C
1 day
Test Coverage

Function esnCollaborationInviteUsers has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function esnCollaborationInviteUsers(
    $q,
    $rootScope,
    notificationFactory,
    session,

    Function link has 84 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function link($scope, $element) {
          $scope.displayProperty = 'displayName';
          $scope.running = false;
    
          $scope.getErrorDiv = function() {

      Function inviteUsers has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            $scope.inviteUsers = function() {
              $scope.hideErrorMessage();
              $scope.noUser = false;
              $scope.invalidUser = false;
              if ($scope.query && $scope.query !== '') {

        Function esnCollaborationInviteUsers has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            $q,
            $rootScope,
            notificationFactory,
            session,
            esnCollaborationService,

          There are no issues that match your filters.

          Category
          Status