lipp/node-jet

View on GitHub
src/1_socket/message-socket.ts

Summary

Maintainability
A
2 hrs
Test Coverage

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

  constructor(port: number | Socket, ip = '') {
    super()
    if (port instanceof Socket) {
      this.socket = port
    } else {
Severity: Minor
Found in src/1_socket/message-socket.ts - About 1 hr to fix

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

      addEventListener(
        method: string | symbol,
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        listener: { (...args: any[]): void; call?: any }
      ) {
    Severity: Minor
    Found in src/1_socket/message-socket.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status