keymetrics/pm2-io-apm

View on GitHub
src/census/plugins/net.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function getPatchIncomingRequestFunction has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected getPatchIncomingRequestFunction () {
    return (original: (event: string) => boolean) => {
      const plugin = this
      // This function's signature is that of an event listener, which can have
      // any number of variable-type arguments.
Severity: Minor
Found in src/census/plugins/net.ts - About 1 hr to fix

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

          return function incomingRequest (event: string, ...args: any[]): boolean {
            // Only traces request events
            if (event !== 'connection') {
              return original.apply(this, arguments)
            }
    Severity: Minor
    Found in src/census/plugins/net.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status