frontend/js/modules/collaboration/invite/collaboration-invite-users.directive.js
Function esnCollaborationInviteUsers
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function esnCollaborationInviteUsers(
$q,
$rootScope,
notificationFactory,
session,
Function link
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
$q,
$rootScope,
notificationFactory,
session,
esnCollaborationService,