keymetrics/pm2-io-apm

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

Summary

Maintainability
A
1 hr
Test Coverage

Function applyPatch has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

  protected applyPatch () {
    this.logger.debug('Patched express')

    if (!semver.satisfies(this.version, '^4.0.0')) {
      this.logger.debug('express version %s not supported - aborting...', this.version)
Severity: Minor
Found in src/census/plugins/express.ts - About 1 hr to fix

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

      private applyLayerPatch (layer: any, layerPath?: string) {
        const plugin = this
        if (layer[this.kPatched] === true) return
        layer[this.kPatched] = true
        plugin.logger.debug('patching express.Router.Layer.handle')
    Severity: Minor
    Found in src/census/plugins/express.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status