linagora/openpaas-esn

View on GitHub
frontend/js/modules/collaboration/members/collaboration-members-widget.directive.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function esnCollaborationMembersWidget has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function esnCollaborationMembersWidget($rootScope, esnCollaborationClientService, ESN_COLLABORATION_MEMBER_EVENTS, ESN_COLLABORATION_MEMBERSHIP_EVENTS) {
    return {
      scope: {
        collaboration: '=',
        objectType: '@',

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

        function link(scope, element, attrs) {
          scope.updateMembers = updateMembers;
          scope.inSlicesOf = attrs.inSlicesOf && angular.isNumber(parseInt(attrs.inSlicesOf, 10)) ?
            parseInt(attrs.inSlicesOf, 10) : 3;
          scope.error = false;

      There are no issues that match your filters.

      Category
      Status