linagora/hublin

View on GitHub
frontend/js/modules/websocket/services.js

Summary

Maintainability
C
1 day
Test Coverage

File services.js has 440 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

angular.module('op.websocket')
  .factory('IoAction', ['$timeout', function($timeout) {
    function getNgCallback(callback) {
Severity: Minor
Found in frontend/js/modules/websocket/services.js - About 6 hrs to fix

    Function ioInterface has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function ioInterface(callback) {
    
          var ioAction = new IoAction();
          var terminate = {
            emit: emit,
    Severity: Minor
    Found in frontend/js/modules/websocket/services.js - About 1 hr to fix

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

              on: function(event, callback) {
                if (!room) {
                  client.on(event, callback);
                  $log.debug(namespace + ' : subscribed');
      
      
      Severity: Minor
      Found in frontend/js/modules/websocket/services.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status