f-hj/slsk-client

View on GitHub
lib/listen.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

  constructor (port) {
    super()
    this.port = port

    this.server = net.createServer((c) => {
Severity: Minor
Found in lib/listen.js - About 1 hr to fix

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

        this.server = net.createServer((c) => {
          let user
    
          let msgs = new Messages()
          c.on('data', chunk => {
    Severity: Minor
    Found in lib/listen.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status