qlik-oss/http-metrics-middleware

View on GitHub

Showing 2 of 2 total issues

Function trackDuration has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  trackDuration(req, res, next) {
    if (
      this.options.excludeRoutes
      && this.matchVsRegExps(req.originalUrl, this.options.excludeRoutes)
    ) {
Severity: Minor
Found in index.js - About 1 hr to fix

    Function initRoutes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      initRoutes() {
        const labelNames = ['status_code', 'method'];
        if (this.options.includePath) {
          labelNames.push('path');
        }
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language