server/backends/irc/connection-manager/connectionManager.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function connect has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function connect(userId, nick, network) {
  if (sockets[`${userId}:${network}`]) {
    log.warn({ id: userId }, `Impossible happened. Already connected to IRC network: ${network}`);
    return;
  }
Severity: Minor
Found in server/backends/irc/connection-manager/connectionManager.js - About 2 hrs to fix

    Function handleIdentConnection has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function handleIdentConnection(socket) {
      const timer = setTimeout(() => {
        if (socket) {
          socket.destroy();
        }
    Severity: Minor
    Found in server/backends/irc/connection-manager/connectionManager.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status